Skip to content

Commit

Permalink
Merge pull request #608 from danilovmy/master
Browse files Browse the repository at this point in the history
fix #607
  • Loading branch information
lepture committed Dec 30, 2023
2 parents a7d68b4 + a0c85f4 commit 4a41288
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 4a41288

Please sign in to comment.