fix: prefill avatar when signing up (#13427)

This commit is contained in:
neo773
2024-01-27 14:24:31 +00:00
committed by GitHub
parent 3c42301c19
commit 6643d3c20b
@@ -788,6 +788,7 @@ export const AUTH_OPTIONS: AuthOptions = {
username: orgId ? slugify(orgUsername) : usernameSlug(user.name),
emailVerified: new Date(Date.now()),
name: user.name,
...(user.image && { avatarUrl: user.image }),
email: user.email,
identityProvider: idP,
identityProviderId: account.providerAccountId,