AccountsMagicLink

@accounts/magic-linkGlobalsAccountsMagicLink

Type parameters

CustomUser: User

Hierarchy

  • AccountsMagicLink

Implements

  • AuthenticationService

Index

Constructors

Properties

Methods

Constructors

constructor

+ new AccountsMagicLink(options: AccountsMagicLinkOptions): AccountsMagicLink

Defined in accounts-magic-link.ts:39

Parameters:

NameTypeDefault
optionsAccountsMagicLinkOptions{}

Returns: AccountsMagicLink

Properties

server

server: AccountsServer

Defined in accounts-magic-link.ts:37


serviceName

serviceName: string = "magicLink"

Defined in accounts-magic-link.ts:36

Methods

authenticate

authenticate(params: LoginUserMagicLinkService): Promise‹CustomUser›

Defined in accounts-magic-link.ts:83

Parameters:

NameType
paramsLoginUserMagicLinkService

Returns: Promise‹CustomUser›


isTokenExpired

isTokenExpired(tokenRecord: TokenRecord, expiryDate: number): boolean

Defined in accounts-magic-link.ts:103

Parameters:

NameType
tokenRecordTokenRecord
expiryDatenumber

Returns: boolean


requestMagicLinkEmail

requestMagicLinkEmail(email: string): Promise‹void›

Defined in accounts-magic-link.ts:49

Parameters:

NameType
emailstring

Returns: Promise‹void›


setStore

setStore(store: DatabaseInterface‹CustomUser›): void

Defined in accounts-magic-link.ts:45

Parameters:

NameType
storeDatabaseInterface‹CustomUser›

Returns: void