News for hackers. Stuff that matters.
Re:Using OAuth to add authentication to a React app by jensneuse on Friday November 12, 2021 @10:05AM (#29199909)
Secure, encrypted, same site, http only cookies cannot be accessed by JavaScript.
Re:Using OAuth to add authentication to a React app by whateveracct on Friday November 12, 2021 @10:26AM (#29200150)
Sign it as well!

For instance: https://github.com/gorilla/securecookie

Unless I'm missing something and the payload is effectively signed. Either way, I still like to have signing generically done at this level of abstraction. Then I can put whatever in there.

Sometimes the encrypted payload is also signed too - maybe with a per-user secret. Now "log out everywhere" is as simple as scrambling the user's secret, thus invalidating their cookies. Simple.