mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-13 08:46:20 +02:00
add auth connection with backend part
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user