Skip to content

Token Kicking #48

@kyleoneill

Description

@kyleoneill

Currently there is no way to kick tokens, as they are not stored server-side at all. When a token is received it is de-coded using the application secret and the user ID is pulled from it.

Tokens should be stored in a new collection, when a user auths then the token they are authing with must exist in the db or else the attempt fails. Allowing multiple tokens for a user is fine, in case they want to be logged in from multiple places at the same time.

When a user changes their password, all existing tokens for that user should be kicked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions