obabichev / react-token-auth

84 stars 22 forks source link

Allow to do something else if there is a valid token #13

Closed shackra closed 3 years ago

shackra commented 3 years ago

I carry the user permissions on my JWT, if the token exists on localstorage and is valid I would like to do something else, like for instance, extracting the permissions from it and setting that on my app.