Skip to content

ApAp Stack: Login #53

@chadfurman

Description

@chadfurman

Using Passport.js and Redis:

  • authenticate a user's credentials against the local database
  • store a JWT in a redis whitelist with an expiration time on the entry

Pick token storage method:

  • Use a Same-Site HTTP-Only Secure __Host- prefixed cookies -- CSRF issues, needs nonce
  • use Authorization headers and localStorage -- XSS concerns but little to no CSRF issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions