jwt served via httponly cookie with someway to find out is-logged-in [migrated]

While building a javascript SPA (single page application) I need to display some pages differently based on if the user is logged in or not.

Auth is handled by JWT which is served via httpOnly cookie and secure headers.

That leaves cook… Continue reading jwt served via httponly cookie with someway to find out is-logged-in [migrated]

Are the trade offs for putting an auth token in an http-only cookie for an SPA worth it?

I’ve been building a web app (rails api + react SPA) for learning / fun and have been researching authentication. The most commonly recommended approach for authenticating SPAs that I have read is to put the auth token (such … Continue reading Are the trade offs for putting an auth token in an http-only cookie for an SPA worth it?