Skip to content

Commit

Permalink
apple providerに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Mar 8, 2024
1 parent b7a894b commit 9b8894f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ export const extractUserInfoFromSupabase = (user: User) => {
displayName: user.user_metadata.name as string,
avatarUrl: user.user_metadata.avatar_url as string,
};
case 'apple':
return {
id: user.id,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- たぶん大丈夫
email: user.email!,
name: 'user',
displayName: 'user',
avatarUrl: user.user_metadata.avatar_url as string,
};
default:
throw new Error('invalid provider');
}
Expand Down

0 comments on commit 9b8894f

Please sign in to comment.