Add missing return

We're calling back that there is no auth data, so we should stop here and not try to obtain a user profile.

Contributes to issue CURA-8539.
This commit is contained in:
Ghostkeeper 2021-11-22 10:34:39 +01:00
parent ffb891fb69
commit 1636cca601
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -103,6 +103,7 @@ class AuthorizationService:
# If no auth data exists, we should always log in again.
Logger.debug("There was no auth data or access token")
callback(None)
return
# When we checked the token we may get a user profile. This callback checks if that is a valid one and tries to refresh the token if it's not.
def check_user_profile(user_profile):