Skip to content

Commit

Permalink
fix #607
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Danilov committed Dec 20, 2023
1 parent a7d68b4 commit a0c85f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authlib/oauth2/rfc7523/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def generate(self, grant_type, client, user=None, scope=None, expires_in=None):
:param scope: current requested scope.
:return: Token dict
"""
if not expires_in:
if expires_in is None:
expires_in = self.DEFAULT_EXPIRES_IN

token_data = self.get_token_data(grant_type, client, expires_in, user, scope)
Expand Down

0 comments on commit a0c85f4

Please sign in to comment.