Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue 2817] Create a /users/token/refresh endpoint #3002

Merged
merged 15 commits into from
Nov 25, 2024
Merged

[Issue 2817] Create a /users/token/refresh endpoint #3002

merged 15 commits into from
Nov 25, 2024

Conversation

babebe
Copy link
Collaborator

@babebe babebe commented Nov 22, 2024

Summary

Fixes #{2817}

Time to review: 5 mins

Changes proposed

Added POST endpoint token/refresh
Added UserTokenRefreshResponseSchema
Added reusable func refresh_token_expiration
Added 2 tests. For success case and case when token was expired

api/src/api/users/user_routes.py Outdated Show resolved Hide resolved
api/tests/src/api/users/test_user_route_token.py Outdated Show resolved Hide resolved
@babebe babebe requested a review from chouinar November 22, 2024 22:39
@babebe babebe merged commit 749852c into main Nov 25, 2024
2 checks passed
@babebe babebe deleted the 2817/refresh branch November 25, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a /users/token/refresh endpoint Task: Add signout endpoint
4 participants