Always callback if there is a callback, even if no auth data

Because not having auth data is a reason to return no profile too. Otherwise the other side might wait for a response for a long time.

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

View file

@ -89,6 +89,9 @@ class AuthorizationService:
self.deleteAuthData()
if callback is not None:
callback(None)
else:
if callback is not None:
callback(None)
self._parseJWT(callback = store_profile)