Skip to content

Commit

Permalink
fix refreshed access_token access
Browse files Browse the repository at this point in the history
  • Loading branch information
polivbr committed Oct 24, 2023
1 parent c298b1e commit 325289a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/io/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def access_token(self) -> str | None:
"""
Returns the OAuth access_token if enabled.
"""
if self.user in self._oauth_user_overrides and 'refresh_token' in self._oauth_user_overrides:
if self.user in self._oauth_user_overrides and 'access_token' in self._oauth_user_overrides[self.user]:
return self._oauth_user_overrides[self.user]['access_token']
access_token = self._decode_cookie('access_token')
if not access_token:
Expand Down

0 comments on commit 325289a

Please sign in to comment.