Fixed some styling and typing issues

Some boyscouting.
Contributes to: CURA-8539
This commit is contained in:
Jelle Spijker 2021-11-23 11:09:40 +01:00
parent 70504f1b04
commit 0a43366ffc
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
3 changed files with 16 additions and 13 deletions

View file

@ -94,12 +94,12 @@ class AuthorizationHelpers:
return
callback(AuthenticationResponse(success = True,
token_type = token_data["token_type"],
access_token = token_data["access_token"],
refresh_token = token_data["refresh_token"],
expires_in = token_data["expires_in"],
scope = token_data["scope"],
received_at = datetime.now().strftime(TOKEN_TIMESTAMP_FORMAT)))
token_type = token_data["token_type"],
access_token = token_data["access_token"],
refresh_token = token_data["refresh_token"],
expires_in = token_data["expires_in"],
scope = token_data["scope"],
received_at = datetime.now().strftime(TOKEN_TIMESTAMP_FORMAT)))
return
def checkToken(self, access_token: str, success_callback: Optional[Callable[[UserProfile], None]] = None, failed_callback: Optional[Callable[[], None]] = None) -> None: