Skip to main content

AccountsMagicLink <CustomUser>

Implements

  • unknown

Index

Constructors

constructor

Properties

publicserver

server: AccountsServer

publicserviceName

serviceName: string = 'magicLink'

Methods

publicauthenticate

  • authenticate(params: LoginUserMagicLinkService): Promise<CustomUser>
  • Parameters

    • params: LoginUserMagicLinkService

    Returns Promise<CustomUser>

publicisTokenExpired

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

    • tokenRecord: TokenRecord
    • expiryDate: number

    Returns boolean

publicrequestMagicLinkEmail

  • requestMagicLinkEmail(email: string): Promise<void>
  • Parameters

    • email: string

    Returns Promise<void>

publicsetSessionsStore

  • setSessionsStore(): void
  • Returns void

publicsetUserStore

  • setUserStore(store: DatabaseInterfaceUser<CustomUser>): void
  • Parameters

    • store: DatabaseInterfaceUser<CustomUser>

    Returns void