Skip to content

can't check that a JWT has an expiry defined in the verify function #220

Open
@andyedwardsibm

Description

@andyedwardsibm

On the verify function, I can set the verification options to check the issuer, audience etc. These trigger a verification failure if the field is either wrong or completely missing. But there is no way to insist that there is an expiry in the claims.

I thought that I could set ignoreExpiration to false and force the verification to check, but it seems that the ignoreExpiration option only has an effect (and the expiry is only checked) if the exp field exists in the claims.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions