Skip to content

Scheduling infrastructure for absolutely everyone.

fix: prefill avatar when signing up (#13427)

neo7736643d3c20b10
diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts
index 0cf25301747..dc361df7400 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,