@deep/nest-kit
    Preparing search index...

    Class BaseOtpService<U>

    OtpService (One-Time Password Service) is a service that provides the functionality to configure OTP, generate secret tokens for the authenticator, and verify and disable OTP for users.

    It is commonly used for adding an additional layer of security to the authentication process. With OtpService, users can enable OTP to receive a one-time code to verify their identity when they log in. The service can generate a unique secret token for each user, which is then used by the authenticator app to generate one-time codes. OtpService can verify the code entered by the user and grant access upon successful verification.

    Additionally, users can disable OTP for their account if they no longer wish to use it.

    Type Parameters

    Index

    Constructors

    Properties

    appConfig: AppConfigType
    jwtService: BaseJwtService<U>
    usersService: BaseUsersService<U>

    Methods

    • Generate One-Time Password auth URL for authenticator app

      Parameters

      • user: BaseUser

        user to generate OTP auth URL for

      Returns string

      • OTP auth URL