ваше сообщение коммита

This commit is contained in:
2025-07-27 03:30:13 +03:00
parent 057fe6254c
commit 1835632be9
141 changed files with 32514 additions and 6661 deletions

View File

@@ -10,7 +10,7 @@
* GitHub: https://github.com/HB3-ACCELERATOR
*/
import axios from '../api/axios';
import axios from 'axios';
import { ethers } from 'ethers';
import { SiweMessage } from 'siwe';
@@ -100,10 +100,15 @@ export const connectWallet = async () => {
// Отправляем верификацию на сервер
console.log('Sending verification request...');
const verifyResponse = await axios.post('/auth/verify', {
const requestData = {
address: normalizedAddress,
signature,
nonce,
};
console.log('Request data:', requestData);
const verifyResponse = await axios.post('/api/auth/verify', requestData, {
withCredentials: true,
});
// Обновляем интерфейс для отображения подключенного состояния