otpauth
    Preparing search index...

    Class URI

    HOTP/TOTP object/string conversion.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parses a Google Authenticator key URI and returns an HOTP/TOTP object.

      Parameters

      • uri: string

        Google Authenticator Key URI.

      Returns HOTP | TOTP

      HOTP/TOTP object.

    • Converts an HOTP/TOTP object to a Google Authenticator key URI.

      Parameters

      Returns string

      Google Authenticator Key URI.