autoSignIn should extend to email verification and password reset #178

Closed
opened 2026-03-13 07:36:24 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @svaraborut on GitHub (Nov 4, 2024).

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). **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`.
Author
Owner

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

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

@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#178