Skip to content

Unable to validate token due to "OTP already verified" #1

@RyanScarbrough

Description

@RyanScarbrough

On the GitHub page for auth.service.ts, line 123 is incorrect. In your video at 7:19 you show the correct way to do it.

It should be:
if (!user.otp.otpVerified)

But in GitHub it is:
if (user.otp.otpVerified)

Which causes an error to happen every time the code runs the postValidateTFAToken() function.

I posted this on the YouTube video as well incase anyone runs into this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions