Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HotpAuth

An extension of AuthProvider which uses the one time passwords based on counter to perform authentication.

Hierarchy

  • any
    • HotpAuth

Index

Methods

authenticatorFetcher

  • Provide a that can fetch s from a backend given an identifier argument.

    The function signature is as follows:

    (id) -> Future

    • id the identifier to lookup.
    • async result with a authenticator.

    Parameters

    Returns HotpAuth

authenticatorUpdater

  • Provide a that can update or insert a . The function should store a given authenticator to a persistence storage.

    When an authenticator is already present, this method must at least update , and is not required to perform any other update.

    For new authenticators, the whole object data must be persisted.

    The function signature is as follows:

    (Authenticator) -> Future

    • the authenticator data to update.
    • async result of the operation.

    Parameters

    Returns HotpAuth

createAuthenticator

  • Creating authenticator from user id and key.

    Parameters

    Returns PromiseLike<Authenticator>

generateUri

  • generateUri(otpKey: OtpKey, issuer: string, user: string, label: string): string
  • generateUri(otpKey: OtpKey, issuer: string, user: string): string
  • generateUri(otpKey: OtpKey, label: string): string
  • Creating URI for register in key in user device.

    Parameters

    • otpKey: OtpKey
    • issuer: string
    • user: string
    • label: string

    Returns string

  • Creating URI for register in key in user device.

    Parameters

    • otpKey: OtpKey
    • issuer: string
    • user: string

    Returns string

  • Creating URI for register in key in user device.

    Parameters

    • otpKey: OtpKey
    • label: string

    Returns string

Static create

  • Creates an instance of HotpAuth.

    Returns HotpAuth

  • Creates an instance of HotpAuth.

    Parameters

    Returns HotpAuth

Generated using TypeDoc