From 629ed6e8e8c50e8386d02425c466a47a955ec357 Mon Sep 17 00:00:00 2001 From: James Riehl Date: Thu, 23 Nov 2023 10:59:47 +0000 Subject: [PATCH] chore: run black --- src/babble/auth.py | 6 +++++- src/babble/config.py | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/babble/auth.py b/src/babble/auth.py index 1616ecb..8030d03 100644 --- a/src/babble/auth.py +++ b/src/babble/auth.py @@ -9,6 +9,7 @@ from .crypto.identity import Identity from .encoding import to_base64, from_base64 + @dataclass class TokenMetadata: address: str @@ -63,7 +64,10 @@ def authenticate(identity: Identity, name: str = None) -> Tuple[str, TokenMetada # parse the token token_data = jwt.decode( - token, algorithms=["RS*"], options={"verify_signature": False}, issuer="fetch.ai" + token, + algorithms=["RS*"], + options={"verify_signature": False}, + issuer="fetch.ai", ) # build the token metadata diff --git a/src/babble/config.py b/src/babble/config.py index 26c7de4..e8c456c 100644 --- a/src/babble/config.py +++ b/src/babble/config.py @@ -1,8 +1,6 @@ import os -AUTH_SERVER = os.environ.get( - "AUTH_SERVER", "https://accounts.fetch.ai/v1" -) +AUTH_SERVER = os.environ.get("AUTH_SERVER", "https://accounts.fetch.ai/v1") MEMORANDUM_SERVER = os.environ.get( "MEMORANDUM_SERVER", "https://messaging-server.sandbox-london-b.fetch-ai.com/graphql",