Open NomAnor opened 1 year ago
If the expires_at timestamp in a token is 0 the is_expired() function erroneously returns None instead of True. The check should explicitly check for None.
expires_at
is_expired()
None
True
https://github.com/lepture/authlib/blob/ee4337cf7c825349dd23870822a3cc7df123097f/authlib/oauth2/rfc6749/wrappers.py#L13-L17
If the
expires_at
timestamp in a token is 0 theis_expired()
function erroneously returnsNone
instead ofTrue
. The check should explicitly check forNone
.https://github.com/lepture/authlib/blob/ee4337cf7c825349dd23870822a3cc7df123097f/authlib/oauth2/rfc6749/wrappers.py#L13-L17