Skip to content

Commit

Permalink
fix: HUMAN_APP role converted to human_app
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzeranov committed Oct 31, 2024
1 parent 80eb04f commit 95c07ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def __call__(self, request: Request) -> HTTPAuthorizationCredentials | Non
AuthorizationDependency = HTTPBearer(scheme_name="jwt_bearer")
AuthorizationToken = HTTPAuthorizationCredentials

HUMAN_APP_ROLE = "HUMAN_APP"
HUMAN_APP_ROLE = "human_app"


class AuthorizationData(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def generate_jwt_token(
) -> str:
return jwt.encode(
{
**({"wallet_address": wallet_address} if wallet_address else {"role": "HUMAN_APP"}),
**({"wallet_address": wallet_address} if wallet_address else {"role": "human_app"}),
"email": email,
},
PRIVATE_KEY,
Expand Down

0 comments on commit 95c07ee

Please sign in to comment.