DEV Community

Discussion on: Authentication and Authorisation 101

Collapse
 
yannbrrd profile image
Yann Barraud

I've been through 10s of authentication & authorisation articles. This on sums it up very well. I still have an issue which is rather unclear to me.

I'm working on a React app. Regarding CSRF & XSS, most articles tell not to store credentials into localStorage, but "we'll do this for the sake of this article"... So I saw proposals about using cookies (httpOnly, but how does it work for my API then ?), or redux.

I think I'll got to redux, or some Provider like auth provider, but I'm still a bit confused here on how auth provider works. Any pointer/reco about that?

Collapse
 
edydeyemi profile image
Edydeyemi

I am also a bit confused regarding the best place/way to store jwt, especially for Cordova/Capacitor projects without any Javascript frameworks. I am currently putting a project on hold because of this. Any ideas would be much appreciated 🙈🙈