fix: accept token as query param in authenticate, pass token to oauth link URL

This commit is contained in:
Kirill
2026-05-22 13:52:48 +05:00
parent d51266446f
commit 22282c5f4e
3 changed files with 9 additions and 1 deletions
@@ -277,7 +277,12 @@ export function SettingsPage() {
</Button>
)}
{!m.active && m.type !== 'password' && (
<Button size="small" variant="outlined" component="a" href={`/api/auth/oauth/${m.type}/link`}>
<Button
size="small"
variant="outlined"
component="a"
href={`/api/auth/oauth/${m.type}/link?token=${localStorage.getItem('craftshop_auth_token') || ''}`}
>
Привязать
</Button>
)}