[GH-ISSUE #416] autoSignIn should extend to email verification and password reset #16893

Closed
opened 2026-04-15 14:52:12 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @svaraborut on GitHub (Nov 4, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/416

Is your feature request related to a problem? Please describe.
When the authentication flow has requireEmailVerification, the autoSignIn flag has no effect and disrupts the authentication flow.

Describe the solution you'd like
The /auth/verify-email endpoint shall also consider autoSignIn and authenticate the user implicitly. The same behavior shall be implemented in the password reset flow to /auth/reset-password.

Originally created by @svaraborut on GitHub (Nov 4, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/416 **Is your feature request related to a problem? Please describe.** When the authentication flow has `requireEmailVerification`, the `autoSignIn` flag has no effect and disrupts the authentication flow. **Describe the solution you'd like** The `/auth/verify-email` endpoint shall also consider `autoSignIn` and authenticate the user implicitly. The same behavior shall be implemented in the password reset flow to `/auth/reset-password`.
GiteaMirror added the locked label 2026-04-15 14:52:12 -05:00
Author
Owner

@Bekacru commented on GitHub (Dec 17, 2024):

we've added a flag for this use case autoSignInAfterVerification under emailVerification

<!-- gh-comment-id:2547860036 --> @Bekacru commented on GitHub (Dec 17, 2024): we've added a flag for this use case `autoSignInAfterVerification` under `emailVerification`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16893