This HTTP backend controller can be used to validate the ownership of user's email address.

  1. Call .authenticateEmail(body, lang) to send the authentication email
  2. Call .verifyEmailCode(body) to verify user supplied code from the email and create a session JWT
  3. Call .verifyEmailToken(body) to verify validity of the previously created session JWT and to refresh the session

The .verifyTokenAndReturnSubject(token) can be used to validate internally API calls in your own APIs.

Hierarchy

  • EmailAuthController

Constructors

Properties

_defaultLanguage: Language
_emailAuthMessageService: EmailAuthMessageService
_emailTokenService: EmailTokenService
_emailVerificationService: EmailVerificationService

Methods

  • Can be used internally in APIs to validate and return the subject of this token.

    Parameters

    • token: string

    Returns Promise<string>

Generated using TypeDoc