Michiel van Roon

Results 30 comments of Michiel van Roon

@digitalkaoz This is already the case: - A request will check beforehand if the access token needs to be refreshed first - Any requests are put in a queue while...

> Is this library still supported? This needs fixing Feel free to create pull request mate

Relevant: https://pragmaticwebsecurity.com/articles/oauthoidc/localstorage-xss.html >Step 1: don’t worry too much about storage. I often get questions from developers asking how to store tokens securely. If you are unsure how to handle token...

Isn't calling an endpoint a lot more time consuming than parsing a token?

@magom001 Perhaps you could turn this into a PR?

@stereodenis not sure where your error came from, but this library uses localstorage and is therefore currently incompatible with react native You could make a PR or fork this library....

> We're not married to localStorage There’s no cross-platform (web and React native) solution for local storage. In order to make this library RN-compatible, we’d have to implement a check...

I've forked this library and plan to publish it as react-native-axios-jwt: https://github.com/mvanroon/react-native-axios-jwt/ The reason why I went with a fork instead of a pull request: - It's clearer for developers...

I think recombining both libraries would quickly result in messy code (if-elsing between both storage solutions). But feel free to take a stab at it.

> > I think recombining both libraries would quickly result in messy code (if-elsing between both storage solutions). But feel free to take a stab at it. > > Just...