Re:Using OAuth to add authentication to a React app
by mooreds on Friday November 12, 2021 @09:39AM
(#29199639)
Hmmm. This article explicitly uses an express server to avoid the token being sent to the client.
That said, if you must send a token to the browser because you don't want to manage sessions, we've seen folks have success storing the JWT in an HTTPOnly secure cookie.
That said, if you must send a token to the browser because you don't want to manage sessions, we've seen folks have success storing the JWT in an HTTPOnly secure cookie.
Disclosure: am co-worker of the author.