From 16aaae841e281504473af4c2c7fabdf178091784 Mon Sep 17 00:00:00 2001 From: Noloquideus Date: Tue, 12 May 2026 18:14:52 +0300 Subject: [PATCH] feat: add auth --- src/presentation/routing/kyc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/presentation/routing/kyc.py b/src/presentation/routing/kyc.py index 554c771..badcac0 100644 --- a/src/presentation/routing/kyc.py +++ b/src/presentation/routing/kyc.py @@ -59,10 +59,10 @@ GET_KYC_SESSION_RESPONSES = { description='Creates a Beorg KYC session for one hour and returns link, user token and QR code.', ) async def create_kyc( - #auth: AuthContext = Depends(require_access_token), + auth: AuthContext = Depends(require_access_token), command: PassKycCommand = Depends(get_pass_kyc_command), ) -> BeorgKycCreateResponse: - result = await command(user_id='01KPKAFN6J1NJBY15DX8JE2QYB') + result = await command(user_id=auth.user_id) return result @@ -74,8 +74,8 @@ async def create_kyc( description='Returns latest KYC session status, link, QR code and expiration data.', ) async def get_kyc_session( - #auth: AuthContext = Depends(require_access_token), + auth: AuthContext = Depends(require_access_token), command: GetKycSessionCommand = Depends(get_kyc_session_command), ) -> KycSessionResponse: - result = await command(user_id='01KPKAFN6J1NJBY15DX8JE2QYB') + result = await command(user_id=auth.user_id) return result \ No newline at end of file