gitnlsn / gitnlsn/spotify-suggestions

Refresh token

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Spotify authorization authentication returns a bearer token to authenticate the routes, a refresh token to renew the bearer token and a token expiration time.

Make use of the refresh token so that the already authorized user does not have to go through the authorization process again.

Requirements:
- store refresh token and expired date in local storage
- auto load the token in the application
- implement route for refresh token
- redo authentication whenever token expires

Technical specifications:
- implement a hook to manage data storage on local storage
- standardize data storage by keys in local storage
- create hook to manage the feature and instantiate it in SpotifyAuthContext

Required:
- unit tests

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.