Skip to content

Not all tokens will have an expiration date #17

@visola

Description

@visola

Expiration date is not a required claim so we need to check for expiration date availability before trying to check if the token is expired. That will avoid this NPE:

java.lang.NullPointerException: null
    at org.visola.spring.security.tokenfilter.jwt.JwtTokenService.verifyToken(JwtTokenService.java:73) ~[spring-security-token-filter-1.0.jar:na]

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