gitnlsn / gitnlsn/spotify-suggestions
Refresh token
- 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.