@accounts/magic-link

@accounts/magic-linkGlobals

Index

Enumerations

Classes

Interfaces

Functions

Object literals

Functions

Const getUserLoginTokens

getUserLoginTokens(user: User): TokenRecord[]

Defined in utils/user.ts:3

Parameters:

NameType
userUser

Returns: TokenRecord[]


Const isEmail

isEmail(email?: string): boolean

Defined in utils/is-email.ts:1

Parameters:

NameType
email?string

Returns: boolean


Const isObject

isObject(x: any): x is object

Defined in utils/validation.ts:5

Parameters:

NameType
xany

Returns: x is object


Const isString

isString(x: any): x is string

Defined in utils/validation.ts:1

Parameters:

NameType
xany

Returns: x is string

Object literals

Const defaultOptions

defaultOptions: object

Defined in accounts-magic-link.ts:27

errors

errors: ErrorMessages

Defined in accounts-magic-link.ts:28

loginTokenExpiration

loginTokenExpiration: number = 900000

Defined in accounts-magic-link.ts:30


Const errors

errors: object

Defined in errors.ts:3

invalidEmail

invalidEmail: string = "Invalid email"

Defined in errors.ts:7

loginTokenExpired

loginTokenExpired: string = "Login token expired"

Defined in errors.ts:8

matchFailed

matchFailed: string = "Match failed"

Defined in errors.ts:6

unrecognizedOptionsForLogin

unrecognizedOptionsForLogin: string = "Unrecognized options for login request"

Defined in errors.ts:5

userNotFound

userNotFound: string = "User not found"

Defined in errors.ts:4