Skip to content

Commit

Permalink
chore: run black
Browse files Browse the repository at this point in the history
  • Loading branch information
jrriehl committed Nov 23, 2023
1 parent 0b3c9b2 commit 629ed6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/babble/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .crypto.identity import Identity
from .encoding import to_base64, from_base64


@dataclass
class TokenMetadata:
address: str
Expand Down Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/babble/config.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 629ed6e

Please sign in to comment.