-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Open for discussion.
Since httpOnly cookies aren't accessible by javascript, it makes sense to store things like auth tokens there vs. in localstorage, as they aren't quite as susceptible to XSS.
I guess the question is, do we ever need access to the JWT in javascript, or are we treating it as an opaque session token? If its the latter, we should just set it as an httpOnly cookie. If its the former, we should probably still store it as a cookie, just not set it httpOnly. That way we don't have to manually attach it to each request.
@ianwessen did we use localstorage here for a specific purpose?