Skip to content

Auth middleware is not aware of blacklisted or invalid tokens #55

@f7deleon

Description

@f7deleon

In our current implementation of the auth middleware, we don't have a notion of the session token being invalidated or blacklisted, we only check that the JWT is valid using the verify function inside the jsonwebtoken library. This means that even if a user logout from the backend their token will still be valid until the time set on it expires.

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