Update Token Service to Manage Refresh Tokens #30
Labels
No labels
CI/CD
MongoDB
PostgreSQL
api
authentication
bug
documentation
duplicate
enhancement
example issue
fix
good first issue
help wanted
high-level requirement
infrastructure
invalid
low-level requirement
medium-level requirement
question
security
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/starranja#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
token_service.pymust be expanded to handle the lifecycle of refresh tokens.Tasks:
generate_refresh_token(user_id):secrets.token_urlsafe(64)).password_service.hash_password.token_hashin the newrefresh_tokenstable.validate_refresh_token(plaintext_token):token_hash.