@dynamic-labs/otp-extension
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

otp-extension

This extension allows clients to send and verify OTPs for authentication with the Dynamic client.

Installation

npm install @dynamic-labs/otp-extension

Usage

import { OtpExtension } from '@dynamic-labs/otp-extension';
import { createClient } from '@dynamic-labs/client';
import { View, Text } from 'react-native';

const dynamicClient = createClient({...}).extend(OtpExtension(['email']))

const sendEmailOTP = (email: string) =>
  dynamicClient.auth.email.sendOTP(email)

const verifyEmailOTP = (token: string) =>
  dynamicClient.auth.email.verifyOTP(token)

Readme

Keywords

none

Package Sidebar

Install

npm i @dynamic-labs/otp-extension

Weekly Downloads

1

Version

2.0.8

License

none

Unpacked Size

272 kB

Total Files

16

Last publish

Collaborators

  • packaging-at-dynamic-labs