Skip to content

Endpoint /api/v1/users/validate checks if access and refresh token received matches database #6256

@7riumph

Description

@7riumph

Part of epic #3942

What type of user does this affect?

  • volunteers

How should it operate? ⚙️🛠️

There should now be an api/v1/users/validateroute that receives an access and refresh token, then checks validity.

Acceptance Criteria

  • Adds users/validate post route to api/v1/ ( /api/v1/users/validate )
  • Hashes then compares received access token and refresh token to value stored in database digests
    ( access_token_digestand refresh_token_digest )
  • Returns boolean, true or false, based on validity in response

Helpful Links

API Folder Structure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions