zibri
    Preparing search index...

    Provides functionality around handling time based one time passwords.

    Index

    Constructors

    Methods

    • Validates the given token with a TOTP created with the given secret.

      Parameters

      • secret: string

        The secret to create the TOTP for.

      • token: string

        The token to validate.

      Returns boolean

      True when the token is valid, false otherwise.