[GH-ISSUE #2023] Update image after provider log-in? #9011

Closed
opened 2026-04-13 04:16:17 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @jillesme on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2023

Is this suited for github?

  • Yes, this is suited for github

When you allow emailAndPassword registration, the image is usually empty. When someone later uses a provider log-in we do get an image back. Should we update the image field is it's empty or null?

Describe the solution you'd like

  1. User signs up with email / password
  2. User profile image is empty
  3. User uses provider (e.g. Google OAuth) the second time
  4. User profile image is populated

Describe alternatives you've considered

I can of course manually populate image based on the data returned by await authClient.signIn.social(..). However, it seems like this might be nicer to have "baked-in". The reason being:

  1. If you sign-up using a provider you get an image
  2. If you sign-up using an email and password, but later using a provider, you get no image.

It might be nicer just to have a standard "if you sign in with a provider, you get an image"

Additional context

No response

Originally created by @jillesme on GitHub (Mar 27, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2023 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. When you allow emailAndPassword registration, the image is usually empty. When someone later uses a provider log-in we do get an image back. Should we update the image field is it's empty or null? ### Describe the solution you'd like 1. User signs up with email / password 2. User profile image is empty 3. User uses provider (e.g. Google OAuth) the second time 4. User profile image is populated ### Describe alternatives you've considered I can of course manually populate `image` based on the `data` returned by `await authClient.signIn.social(..)`. However, it seems like this might be nicer to have "baked-in". The reason being: 1. If you sign-up using a provider you get an image 2. If you sign-up using an email and password, but later using a provider, you get no image. It might be nicer just to have a standard "if you sign in with a provider, you get an image" ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 04:16:17 -05:00
Author
Owner

@Bekacru commented on GitHub (Apr 12, 2025):

supported from 1.2.6-beta.13

<!-- gh-comment-id:2799038813 --> @Bekacru commented on GitHub (Apr 12, 2025): supported from `1.2.6-beta.13`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9011