Skip to content

As a user, I don't want my token to be re-usable so that I am unaware if my token is stolen or reused while I am logging in #3

@rietta

Description

@rietta

Expected outcome. When the same six digit code is submitted a second time - even if its but a moment later than the first time - it will be rejected as invalid.

Implementation Thoughts

  • Record used TOTP token or hash in database
  • Delete stale TOTP tokens because they expire after a few minutes anyway
  • When interacting with table, issue a delete statement that purges records older than 5 minutes

Definition of Done

  • Sign in with TOTP and get success
  • Try to sign in again with same TOTP and get 401 unauthorized error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions