feat: create kyc page with api

This commit is contained in:
2026-05-12 19:10:38 +03:00
parent 50c4534017
commit 35b2ebe268
3 changed files with 6 additions and 10 deletions

View File

@@ -18,7 +18,6 @@ export function kycCreate(): Promise<KycResponse> {
async function doKycRequest(allowRetry: boolean): Promise<KycResponse> {
const csrf = await getCsrfToken()
const bearer = tokenStore.get()
const res = await fetch(`${KYC_API_URL}/kyc/create`, {
method: 'POST',
@@ -26,13 +25,10 @@ async function doKycRequest(allowRetry: boolean): Promise<KycResponse> {
headers: {
'Content-Type': 'application/json',
'X-CSRF-Token': csrf,
...(bearer ? { Authorization: `Bearer ${bearer}` } : {}),
},
body: JSON.stringify({}),
})
console.log(res)
if (res.status === 401 && allowRetry) {
try {
await refreshAccessToken()