We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54fa0aa commit bee961fCopy full SHA for bee961f
oauth2_provider/models.py
@@ -157,6 +157,9 @@ def is_expired(self):
157
"""
158
Check token expiration with timezone awareness
159
160
+ if not self.expires:
161
+ return True
162
+
163
return timezone.now() >= self.expires
164
165
def redirect_uri_allowed(self, uri):
@@ -198,6 +201,9 @@ def is_expired(self):
198
201
199
202
200
203
204
205
206
207
208
209
def allow_scopes(self, scopes):
0 commit comments