Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWTBearerTokenGenerator.generate - can not able to generate token with expires_in=0 #607

Closed
danilovmy opened this issue Dec 20, 2023 · 0 comments
Assignees
Labels

Comments

@danilovmy
Copy link

authlib\oauth2\rfc7523\token.py

def generate(self, grant_type, client, user=None, scope=None, expires_in=None):
     if not expires_in:
            expires_in = self.DEFAULT_EXPIRES_IN

it should be:

def generate(self, grant_type, client, user=None, scope=None, expires_in=None):
     if expires_in is None:
            expires_in = self.DEFAULT_EXPIRES_IN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants