You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a token response does not supply the current detected attributes for token expiration (expires_in_sec, expires_in, expires) the token is assumed to be valid.
The text was updated successfully, but these errors were encountered:
jonathanwiesel
changed the title
JWT token that doesn'y supply expiration is assumed as valid
JWT token that doesn't supply expiration is assumed as valid
Nov 19, 2021
Sure thing, the hasAccessmethod is checking the isExpired method, which checks for specific attributes (expires_in_sec, expires_in, expires) to determine expiration, in case there's no expiration supplied (rare but could happen) or the expiration attribute name is different than the currently configured ones (for example exp) the method returns false, therefore considering it not expired.
Would be great that in case a different expiration attribute is supplied by a system it could be at least supplied as configuration
When a token response does not supply the current detected attributes for token expiration (
expires_in_sec
,expires_in
,expires
) the token is assumed to be valid.The text was updated successfully, but these errors were encountered: