pyl changes

This commit is contained in:
mike cullerton 2022-10-17 17:03:34 -04:00
parent a6112f7fb5
commit 201a6918a0
3 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ def configure_sentry(app: flask.app.Flask) -> None:
integrations=[
FlaskIntegration(),
],
environment=app.config['ENV_IDENTIFIER'],
environment=app.config["ENV_IDENTIFIER"],
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.

View File

@ -68,7 +68,7 @@ def verify_token(token: Optional[str] = None) -> Dict[str, Optional[Union[str, i
if user:
refresh_token = AuthenticationService.get_refresh_token(user.id)
if refresh_token:
auth_token = (
auth_token: dict = (
AuthenticationService.get_auth_token_from_refresh_token(
refresh_token
)
@ -77,7 +77,7 @@ def verify_token(token: Optional[str] = None) -> Dict[str, Optional[Union[str, i
# redirect to original url, with auth_token?
user_info = (
AuthenticationService.get_user_info_from_open_id(
auth_token['access_token']
auth_token["access_token"]
)
)
if not user_info:

View File

@ -239,7 +239,7 @@ class AuthenticationService:
return refresh_token_object.token
@classmethod
def get_auth_token_from_refresh_token(cls, refresh_token: str) -> str:
def get_auth_token_from_refresh_token(cls, refresh_token: str) -> dict:
"""Get a new auth_token from a refresh_token."""
(
open_id_server_url,