User email instead of preferred_username

This commit is contained in:
Korbs 2024-12-18 23:07:36 -05:00
parent 106c0418b7
commit 7fa699e474

View file

@ -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,