fix: off auth

This commit is contained in:
2026-05-11 23:59:22 +03:00
parent 79343c6539
commit ce61829ea2

View File

@@ -11,10 +11,9 @@ kyc_router = APIRouter(prefix='/kyc', tags=['Kyc'])
@kyc_router.post('/create')
async def create_kyc(
auth: AuthContext = Depends(require_access_token),
#auth: AuthContext = Depends(require_access_token),
command: PassKycCommand = Depends(get_pass_kyc_command),
) -> ORJSONResponse:
user_id = auth.user_id
#result = await command(user_id=user_id)
result = await command(user_id='01KPKAFN6J1NJBY15DX8JE2QYB')
return ORJSONResponse(result.model_dump())
@@ -22,7 +21,7 @@ async def create_kyc(
@kyc_router.get('/session')
async def get_kyc_session(
auth: AuthContext = Depends(require_access_token),
#auth: AuthContext = Depends(require_access_token),
command: GetKycSessionCommand = Depends(get_kyc_session_command),
) -> ORJSONResponse:
#result = await command(user_id=user_id)
@@ -32,7 +31,7 @@ async def get_kyc_session(
@kyc_router.post('/complete')
async def complete_kyc(
auth: AuthContext = Depends(require_access_token),
#auth: AuthContext = Depends(require_access_token),
command: CompleteKycCommand = Depends(get_complete_kyc_command),
) -> ORJSONResponse:
#result = await command(user_id=user_id)