add auth connection with backend part

This commit is contained in:
Hepatica
2023-12-02 02:27:30 +01:00
parent b79503bac0
commit e516edafdc
5 changed files with 160 additions and 62 deletions

View File

@@ -13,9 +13,9 @@ import { BackendApiUrl } from '@/properties/Сonfig.js';
export async function LogIn(authCode) {
try {
const response = await Post(BackendApiUrl + "/Authorize/LogIn", { code: authCode });
console.log(response);
return response;
} catch (error) {
console.error('Ошибка в LogIn:', error);
console.error('Error in LogIn:', error);
}
}