TinaHeiligers / react-auth-boilerplate

0 stars 0 forks source link

Parse JWT to extract valid_till date #22

Open TinaHeiligers opened 6 years ago

TinaHeiligers commented 6 years ago

Needed for sensitive auth routes such as payments, deletion of items etc. Nest these components within the restricted routes and implement time-to-expire checking on the auth token. Story: As a user, I need to refresh my log in token in order to make sensitive requests such as payments and deletion of items so that I know my requests are secure and that someone else cannot act on my behalf because I didn't log out before closing the app or browser.