Skip to content

Commit c5f8989

Browse files
authored
fix: HUMAN_APP role converted to human_app (#2737)
1 parent 80eb04f commit c5f8989

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/examples/cvat/exchange-oracle/src/endpoints/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def __call__(self, request: Request) -> HTTPAuthorizationCredentials | Non
2929
AuthorizationDependency = HTTPBearer(scheme_name="jwt_bearer")
3030
AuthorizationToken = HTTPAuthorizationCredentials
3131

32-
HUMAN_APP_ROLE = "HUMAN_APP"
32+
HUMAN_APP_ROLE = "human_app"
3333

3434

3535
class AuthorizationData(BaseModel):

packages/examples/cvat/exchange-oracle/tests/api/test_exchange_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def generate_jwt_token(
5959
) -> str:
6060
return jwt.encode(
6161
{
62-
**({"wallet_address": wallet_address} if wallet_address else {"role": "HUMAN_APP"}),
62+
**({"wallet_address": wallet_address} if wallet_address else {"role": "human_app"}),
6363
"email": email,
6464
},
6565
PRIVATE_KEY,

0 commit comments

Comments
 (0)