From 6643d3c20b10dafef41d321673597e903aaa586d Mon Sep 17 00:00:00 2001 From: neo773 <62795688+neo773@users.noreply.github.com> Date: Sat, 27 Jan 2024 19:54:31 +0530 Subject: [PATCH] fix: prefill avatar when signing up (#13427) --- packages/features/auth/lib/next-auth-options.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts index 0cf2530174..dc361df740 100644 --- a/packages/features/auth/lib/next-auth-options.ts +++ b/packages/features/auth/lib/next-auth-options.ts @@ -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,