[GH-ISSUE #3077] Detect users first time signing in #9464

Closed
opened 2026-04-13 04:56:09 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Frost7994 on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3077

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Hey I've moved from authjs to better-auth and for the most part it's been a dream. There is one feature I'm trying to implement. Authjs had a new user page that every newUser was redirected to, it was handy to have a form to gather additional info like profile preferences etc. How could I implement something similar with better auth? Thanks in advance

Current vs. Expected behavior

I checked the docs and couldn't find anything similar.

What version of Better Auth are you using?

1.2.9

Provide environment information

OS: Windows 10
Browser: Google Chrome

Which area(s) are affected? (Select all that apply)

Client

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

No response

Originally created by @Frost7994 on GitHub (Jun 18, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3077 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce Hey I've moved from authjs to better-auth and for the most part it's been a dream. There is one feature I'm trying to implement. Authjs had a new user page that every newUser was redirected to, it was handy to have a form to gather additional info like profile preferences etc. How could I implement something similar with better auth? Thanks in advance ### Current vs. Expected behavior I checked the docs and couldn't find anything similar. ### What version of Better Auth are you using? 1.2.9 ### Provide environment information ```bash OS: Windows 10 Browser: Google Chrome ``` ### Which area(s) are affected? (Select all that apply) Client ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 04:56:09 -05:00
Author
Owner

@Kinfe123 commented on GitHub (Jun 19, 2025):

If you’re using OAuth providers, you can use newUserCallbackURL as mentioned here. For credentials-based sign-in, you can use an additionalField here, set its default value to true, and after onboarding is complete, make sure to call updateUser with newUser: false.

<!-- gh-comment-id:2987335622 --> @Kinfe123 commented on GitHub (Jun 19, 2025): If you’re using OAuth providers, you can use `newUserCallbackURL` as mentioned [here]( https://www.better-auth.com/docs/basic-usage#sign-in-with-social-providers). For credentials-based sign-in, you can use an `additionalField` [here](https://www.better-auth.com/docs/reference/options#user), set its default value to `true`, and after onboarding is complete, make sure to call `updateUser` with `newUser: false`.
Author
Owner

@vikto132 commented on GitHub (Jun 30, 2025):

@Kinfe123 currently I want newUser auto sign in if they're register using social account, do you know how to configure that?

<!-- gh-comment-id:3017910054 --> @vikto132 commented on GitHub (Jun 30, 2025): @Kinfe123 currently I want newUser auto sign in if they're register using social account, do you know how to configure that?
Author
Owner

@Kinfe123 commented on GitHub (Jun 30, 2025):

When a new user registers using a social provider, they are automatically signed in. but you can contol the signup with
disableImplicitSignUp: true, // This will prevent new user creation

<!-- gh-comment-id:3020339782 --> @Kinfe123 commented on GitHub (Jun 30, 2025): When a new user registers using a social provider, they are automatically signed in. but you can contol the signup with ` disableImplicitSignUp: true, // This will prevent new user creation`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9464