nOTP with Flows

This guide will walk you through integrating nOTP based authentication into your Descope Flows. With just a single click, nOTP allows your users can log in via WhatsApp, eliminating the need for codes, usernames, and typing.

Try out nOTP for yourself, at nOTP Guru!

Flow Actions

When using OAuth Login, you have the standard actions for most authentication methods available.

  • Sign Up / nOTP - Signs the user up, but will not work if user already exists
  • Sign Up or In / nOTP - Signs the user in, and if user doesn't exist it will automatically sign them up
  • Sign In / nOTP - Signs the user in, but if the user doesn't exist it will fail.
  • Update User / nOTP - Will merge OAuth identity to an existing user

How to Use nOTP Actions

To learn more about Actions in general, you can refer to our guide on them.

Most of these actions are pretty simple, and you can drop them in your application like any other Action.

This is an example of using the Sign Up or In action in a flow:

Descope nOTP sign up or in

When using nOTP, it's important to take note of a few things:

  • The link that is being sent is not an authentication link.
  • nOTP verification should be take place during the last steps of the flow.

Flow Screens

nOTP has only a few actions that can be used in a flow.

They are the WhatsApp button, as well as the nOTP QR Code image.

Descope nOTP screen component

notp-code-verify

If you wish to include the QR code in your own custom screen to sign in with Whatsapp with, you can use the nOTP QR Code image component in any screen.

Error Handling

Error handling is handled like any other action. You can refer to our Flow Error Handling guide for more details.

Was this helpful?

On this page