refactor tokens

This commit is contained in:
smanylov
2026-06-01 14:48:13 +07:00
parent d7d2e36573
commit 743db57bb3
11 changed files with 105 additions and 127 deletions
+3 -1
View File
@@ -23,6 +23,8 @@ export async function getUserData() {
}
});
console.log(response);
if (response.ok) {
return await response.json();
} else {
@@ -165,7 +167,7 @@ export async function getBuildData() {
export async function fetchINN(inn: string) {
try {
const response = await fetch(`${API_BASE_URL}/api/v1/data`, {
const response = await fetch(`${API_BASE_URL}/api/auth`, {
method: 'POST',
body: JSON.stringify({
version: 1,