2FA getting error generating totp uri
I have 2fa enable, and when i trying to sign in, i'm getting error generating totp uri. I'm getting 401 Unauthorized. I double checked the password. I'm using sveltekit.
here the snippet i used directly for docs
Can someone please explain or help why im getting this error
2 Replies
Afaik you need to first log the user in to call this route, so first signIn and then getTotpUri
Since I have 2fa turn on. It's wont allow sign in right?
So how do I ignore two factor redirect. Since I'm required 2fa verification, it won't generate the session.
Is there any workaround this?
Opt email verification work. But I'm only having problem generating totp uri