fix: off auth
This commit is contained in:
@@ -11,10 +11,9 @@ kyc_router = APIRouter(prefix='/kyc', tags=['Kyc'])
|
|||||||
|
|
||||||
@kyc_router.post('/create')
|
@kyc_router.post('/create')
|
||||||
async def create_kyc(
|
async def create_kyc(
|
||||||
auth: AuthContext = Depends(require_access_token),
|
#auth: AuthContext = Depends(require_access_token),
|
||||||
command: PassKycCommand = Depends(get_pass_kyc_command),
|
command: PassKycCommand = Depends(get_pass_kyc_command),
|
||||||
) -> ORJSONResponse:
|
) -> ORJSONResponse:
|
||||||
user_id = auth.user_id
|
|
||||||
#result = await command(user_id=user_id)
|
#result = await command(user_id=user_id)
|
||||||
result = await command(user_id='01KPKAFN6J1NJBY15DX8JE2QYB')
|
result = await command(user_id='01KPKAFN6J1NJBY15DX8JE2QYB')
|
||||||
return ORJSONResponse(result.model_dump())
|
return ORJSONResponse(result.model_dump())
|
||||||
@@ -22,7 +21,7 @@ async def create_kyc(
|
|||||||
|
|
||||||
@kyc_router.get('/session')
|
@kyc_router.get('/session')
|
||||||
async def get_kyc_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),
|
command: GetKycSessionCommand = Depends(get_kyc_session_command),
|
||||||
) -> ORJSONResponse:
|
) -> ORJSONResponse:
|
||||||
#result = await command(user_id=user_id)
|
#result = await command(user_id=user_id)
|
||||||
@@ -32,7 +31,7 @@ async def get_kyc_session(
|
|||||||
|
|
||||||
@kyc_router.post('/complete')
|
@kyc_router.post('/complete')
|
||||||
async def complete_kyc(
|
async def complete_kyc(
|
||||||
auth: AuthContext = Depends(require_access_token),
|
#auth: AuthContext = Depends(require_access_token),
|
||||||
command: CompleteKycCommand = Depends(get_complete_kyc_command),
|
command: CompleteKycCommand = Depends(get_complete_kyc_command),
|
||||||
) -> ORJSONResponse:
|
) -> ORJSONResponse:
|
||||||
#result = await command(user_id=user_id)
|
#result = await command(user_id=user_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user