To learn how to handle OTP links & OAuth refer to initializing
Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, modify the magic link email template to include \{\{ .Token \}\} instead of \{\{ .ConfirmationURL \}\}.
Parameters
provider
(Required)
The provider to use for the user's authentication, in this case `OTP`.
redirectUrl
(Optional)
The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android.