This commit is contained in:
retoor 2025-08-03 23:37:50 +02:00
parent d2583440e8
commit cefb8fab3c

View File

@ -655,7 +655,7 @@
}
// Add auth to query params for GET requests
if (currentUser && options.method === 'GET' || !options.method) {
if (currentUser && (options.method === 'GET' || !options.method)) {
const separator = endpoint.includes('?') ? '&' : '?';
endpoint += `${separator}app=${APP_ID}&token_id=${currentUser.token_id}&token_key=${currentUser.token_key}&user_id=${currentUser.id}`;
}