hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FEAT]: Authentication - Refresh Token & Logout #2

Closed buka4rill closed 3 months ago

buka4rill commented 4 months ago

Acceptance Criteria [WIP]

Refresh Token

  1. Refresh Token Issuance
  1. Storing Refresh Tokens
  1. Using Refresh Tokens
  1. Revoking Refresh Tokens

Refresh Token Endpoint

  1. Token Refresh Endpoint
  1. Validation of Refresh Token

Security Measures

  1. Token Rotation
  1. Single-Use Refresh Tokens
  1. Refresh Token Expiry

Error Handling for Refresh Tokens

  1. Invalid or Expired Refresh Tokens

Documentation for Refresh Tokens

  1. API Documentation

Testing

  1. Unit Tests
buka4rill commented 4 months ago

This issue should be done before this is implemented