User email
instead of preferred_username
This commit is contained in:
parent
106c0418b7
commit
7fa699e474
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ async function handler({ code, state, host }: OAuthQuery, logger: Logger): Promi
|
|||
if (!userJson) return { error: 'invalid user request' };
|
||||
|
||||
return {
|
||||
username: userJson.preferred_username,
|
||||
username: userJson.email,
|
||||
user_id: userJson.sub,
|
||||
access_token: json.access_token,
|
||||
refresh_token: json.refresh_token,
|
||||
|
|
Loading…
Reference in a new issue