change public key

This commit is contained in:
lendry
2026-04-22 15:48:17 +03:00
parent 58c7f4ae1a
commit 60e52e80d5

View File

@@ -41,7 +41,7 @@
method: 'POST',
headers: { 'Content-Type': 'application/json' },
// Добавил device_id и public_key (как требует ваш auth.proto)
body: JSON.stringify({ username, password, deviceId: 'stub-device', publicKey: 'stub-key' }),
body: JSON.stringify({ username, password, deviceId: 'stub-device', publicKey: 'N6fByS7oTIOX6m7on8h6T093SOn3df67o6v6n6n6n6o=' }),
// КРИТИЧЕСКИ ВАЖНО: заставляет браузер сохранить куку refreshToken
credentials: 'include'
});