Skip to content

@sourceloop/authentication-service / Exports / OtpProvider

Class: OtpProvider

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new OtpProvider(generateOtp, sendOtp)

Parameters

Name Type
generateOtp OtpGenerateFn
sendOtp OtpSenderFn

Defined in

services/authentication-service/src/providers/otp.provider.ts:12

Properties

generateOtp

Private Readonly generateOtp: OtpGenerateFn

Defined in

services/authentication-service/src/providers/otp.provider.ts:14


sendOtp

Private Readonly sendOtp: OtpSenderFn

Defined in

services/authentication-service/src/providers/otp.provider.ts:16

Methods

value

value(): OtpFn

Returns

OtpFn

Implementation of

Provider.value

Defined in

services/authentication-service/src/providers/otp.provider.ts:19