Armand
BABetter Auth
•Created by Armand on 4/17/2025 in #help
Microsoft Provider
I'm having trouble getting Microsoft authentication to work. I keep running into this error:
ERROR [Better Auth]: State Mismatch. Verification not found { state: '' }
On
signIn.social({ : 'microsoft', : '/' })
and linkSocial({ provider: 'microsoft' });
The verification table is the default one Verification
sign-in with provider didn't create a record.1 replies
BABetter Auth
•Created by Armand on 4/7/2025 in #help
Sign out after revoking current session
After revoking the current session,
getSessionCookie
in the middleware still return a value so it's act like the user is signed in. How can I prevent this ?5 replies
BABetter Auth
•Created by Armand on 4/4/2025 in #help
First Sign In
What's the best hook to catch first sign in of a user ?
8 replies
BABetter Auth
•Created by Armand on 4/2/2025 in #help
Forget Password Security/Rate limits
Is there an option to rate-limit the verification entries generated by
forgetPassword
?
For example, can we prevent generating a new reset password entry for a given value
id if there are already X non-expired entries for it?
Additionally, what’s the purpose of creating a new entry for the same value
instead of updating the existing one or deleting the old one?
Doc: https://www.better-auth.com/docs/authentication/email-password#forget-password8 replies