Skip to content

Commit

Permalink
fix edge case where auth state is left behind in an updated instance
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Apr 4, 2024
1 parent 8788fe9 commit 985e9d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def authenticate(self, handler, data):

async def refresh_user(self, user, handler=None):
auth_state = await user.get_auth_state()
if auth_state is None:
if auth_state is None or not (self.authorization_url and self.enable_auth_state):
# MagpieAuthenticator is not configured to re-check user authorization or the auth state
# has not been persisted to the database yet.
return True
Expand Down

0 comments on commit 985e9d1

Please sign in to comment.