← Graph

Keep refresh tokens in HttpOnly Secure SameSite cookies

takeaway 2 connections

Store refresh tokens in cookies with HttpOnly (inaccessible to JavaScript), Secure (HTTPS only), SameSite=Strict (sent only to your API) flags and a narrow path. Prevents XSS-driven token theft and simplifies rotation. Works for web and mobile (including Ionic) as long as CORS is set with credentials:true and the front end opts in.

type
recommendation
takeaway Keep refresh tokens in HttpOnly Secure SameSite cookies
about
Restates the HttpOnly-cookie pattern as a recommendation.
takeaway Keep refresh tokens in HttpOnly Secure SameSite cookies
from_talk
Central recommendation of the refresh-token section.

Provenance

Read by
2 extractions