Skip to content

Commit 2e28796

Browse files
committed
Fix authenticate_refresh_token
1 parent ec22ea7 commit 2e28796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def authenticate_user(self, username, password):
4949
class RefreshTokenGrant(grants.RefreshTokenGrant):
5050
def authenticate_refresh_token(self, refresh_token):
5151
token = OAuth2Token.query.filter_by(refresh_token=refresh_token).first()
52-
if token and not token.revoked and not item.is_refresh_token_expired():
52+
if token and not token.revoked and not token.is_refresh_token_expired():
5353
return token
5454

5555
def authenticate_user(self, credential):

0 commit comments

Comments
 (0)