File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ export async function oauthHandleRedirect(opts?: { hubUrl?: string }): Promise<O
161
161
sub : string ;
162
162
name : string ;
163
163
picture : string ;
164
+ preferred_username : string ;
164
165
isEnterprise : boolean ;
165
166
canPay ?: boolean ;
166
167
roleInOrg ?: string ;
@@ -172,8 +173,8 @@ export async function oauthHandleRedirect(opts?: { hubUrl?: string }): Promise<O
172
173
accessTokenExpiresAt,
173
174
userInfo : {
174
175
id : userInfo . sub ,
175
- name : userInfo . name ,
176
- fullname : userInfo . preferred_username ,
176
+ name : userInfo . preferred_username ,
177
+ fullname : userInfo . name ,
177
178
email : userInfo . email ,
178
179
emailVerified : userInfo . email_verified ,
179
180
avatarUrl : userInfo . picture ,
@@ -182,7 +183,7 @@ export async function oauthHandleRedirect(opts?: { hubUrl?: string }): Promise<O
182
183
orgs :
183
184
userInfo . orgs ?. map ( ( org ) => ( {
184
185
id : org . sub ,
185
- name : org . name ,
186
+ name : org . preferred_username ,
186
187
fullname : org . name ,
187
188
isEnterprise : org . isEnterprise ,
188
189
canPay : org . canPay ,
You can’t perform that action at this time.
0 commit comments