Skip to content

Token still valid if JWTUniqueID is null or 0  #14

@Martimiz

Description

@Martimiz

If I change the existing JWTUniqueID to something different in the database, like 'XXX', the token is no longer valid. But if I change it to 0 or null, it becomes valid again. So resetting the token from the cms doesn't work.

Probably because the jti claim (that is created on that value) then becomes empty as well, and as it is optional, it won't be used.

Possible solution: set JWTUniqueID to something invalid ánd unique to disable it. For example $member->ID works - although not very secret :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions