-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: using MFA code without QRCODE #589
Comments
Hello @rdhox, https://github.com/nhost/hasura-auth/blob/main/src/routes/mfa/totp-generate.ts#L45 Or do you mean something else? Regards |
Thanks for your response! When I use Thanks! |
Yes, you can check the links I shared before where you can see the totpsecret in the response. If something else is missing let us know.
You should be able to implement that, never seen that workflow before but you should be able to implement it in your application. |
Thanks!
When I activate the MFA for the user following this, the response of the email/password endpoint is:
Since the session is null, I can not proceed with the I think there is obviously something that I missing here, any clarifications are welcome! Thanks! |
I think you are mistaking things:
You can't send the codes via email because these codes change every 60s so by the time the user sees the email and enters the code it might have expired already. I think you might be mistaking totps (which is an MFA function) with one time passwords: https://docs.nhost.io/guides/auth/sign-in-otp |
I was trying to integrate the MFA to a project and I realised that the code is only readable via a QRCode scan with an application.
Is there a reason why we can not just have the MFA code, send it by email or sms and using the endpoint to check it?
Looking at the source code it would not be hard to make it an option. Is there a possibility for a PR?
Thanks!
The text was updated successfully, but these errors were encountered: