Back to Pocketbase

Interface OTPConfig

static/jsvm/interfaces/core.OTPConfig.html

latest1.6 KB
Original Source

Interface OTPConfig

Hierarchy

  • OTPConfig

Index

Methods

durationTimevalidate

Properties

durationemailTemplateenabledlength

Methods

durationTime

DurationTime returns the current Duration as [time.Duration].

Returns Duration

validate

  • validate(): void

Validate makes OTPConfig validatable by implementing [validation.Validatable] interface.

Returns void

Properties

duration

duration: number

Duration specifies how long the OTP to be valid (in seconds)

emailTemplate

emailTemplate: EmailTemplate

EmailTemplate is the default OTP email template that will be send to the auth record.

In addition to the system placeholders you can also make use of [core.EmailPlaceholderOTPId] and [core.EmailPlaceholderOTP].

enabled

enabled: boolean

length

length: number

Length specifies the auto generated password length.

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc