Skip to content

How to submit OTP for login? #2027

Answered by dfahlander
vinciarts asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • email: string
  • userId?: string
  • grant_type: 'demo' | 'otp'
  • otp?: string
  • otpId?: string

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vinciarts
Comment options

Answer selected by vinciarts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants