How to submit OTP for login? #2027
-
I see the login() method which accepts an email as a parameter, but I couldn’t find any parameters for submitting OTP. Can someone tell me how to submit OTP? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
dfahlander
Jul 1, 2024
Replies: 1 comment 1 reply
-
If default authentication is used, the dialog will prompt for email and then otp and send these to server in the backround without having to specify the OTP in the call to db.cloud.login(). But with the latest versions of dexie-cloud-addon, it is possible to pass the otpId and otp along with the email parameter to bypass the dialogs and auto-login user in one step. Possible parameters:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vinciarts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If default authentication is used, the dialog will prompt for email and then otp and send these to server in the backround without having to specify the OTP in the call to db.cloud.login(). But with the latest versions of dexie-cloud-addon, it is possible to pass the otpId and otp along with the email parameter to bypass the dialogs and auto-login user in one step.
Possible parameters: