Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Where do you store your OAuth tokens on a browser?
1 point by softwarefounder on Feb 23, 2017 | hide | past | favorite
If you're building a website/product that authenticates using OAuth (or any form of token auth), where do you store your access token and refresh tokens on the client?

I want the user to be authenticated across multiple tabs, so sessionStorage is out.

That leaves localStorage and cookies.

How do you handle this, and what are the best practices that you've seen?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: