Skip to content

Switch token storage to cookies? #49

@eaceaser

Description

@eaceaser

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions