Skip to content

Implement refresh token authentication and client integration #177

@madisonweiss

Description

@madisonweiss

Description: Currently, our signin implementation authenticates users using Cognito and returns access and refresh tokens. We need to create an endpoint that allows the application to obtain new authentication tokens using refresh tokens. This will enable automatic token renewal without requiring users to re-authenticate, improving user experience and security. The implementation has 3 steps:

  1. Create an endpoint in auth.controller.ts + service method in auth.service.ts that takes in a refresh token and returns an authentication token
  2. Create a method that calls the endpoint in apiClient.ts
  3. Test added controller and service methods

Acceptance Criteria:

  • An endpoint + service method exists that accepts a refresh token as input and returns a valid authentication token
  • A method is implemented in apiClient.ts that calls the refresh token endpoint
  • Sufficient test coverage of added controller and service methods
  • Error handling is implemented for invalid or expired refresh tokens

Supporting Materials:

Effort Estimate:

  • T-shirt size: M

Metadata

Metadata

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