Automatically infer user language when signing in via Google (#6679)

This commit is contained in:
Tom Moor
2024-03-16 07:59:42 -06:00
committed by GitHub
parent f68c52e255
commit 6775f25425
3 changed files with 14 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ type Props = {
email: string;
/** The public url of an image representing the user */
avatarUrl?: string | null;
/** The language of the user, if known */
language?: string;
};
/** Details of the team the user is logging into */
team: {
@@ -129,6 +131,7 @@ async function accountProvisioner({
result = await userProvisioner({
name: userParams.name,
email: userParams.email,
language: userParams.language,
isAdmin: isNewTeam || undefined,
avatarUrl: userParams.avatarUrl,
teamId: team.id,