feat: create kyc page with api
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { KYC_API_URL } from '@shared/config/env'
|
|
||||||
import { getCsrfToken } from '@shared/api/csrf'
|
import { getCsrfToken } from '@shared/api/csrf'
|
||||||
import { tokenStore } from '@shared/api/tokenStore'
|
import { tokenStore } from '@shared/api/tokenStore'
|
||||||
|
|
||||||
@@ -11,6 +10,8 @@ export interface KycResponse {
|
|||||||
qr_code: string
|
qr_code: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const KYC_API_URL = 'https://app.kyc.elcsa.ru'
|
||||||
|
|
||||||
export async function kycCreate(): Promise<KycResponse> {
|
export async function kycCreate(): Promise<KycResponse> {
|
||||||
const csrf = await getCsrfToken()
|
const csrf = await getCsrfToken()
|
||||||
const bearer = tokenStore.get()
|
const bearer = tokenStore.get()
|
||||||
|
|||||||
Reference in New Issue
Block a user