mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: support VK ID OAuth 2.1 device_id in frontend
- Extract device_id from VK callback URL query params - Pass device_id through store → API → backend - Add useRef guard to prevent useEffect double-fire - Fix URL validation catch-block anti-pattern in Login - Improve error extraction in OAuthCallback (show Error.message)
This commit is contained in:
@@ -174,6 +174,7 @@ export const authApi = {
|
||||
provider: string,
|
||||
code: string,
|
||||
state: string,
|
||||
deviceId?: string | null,
|
||||
campaignSlug?: string | null,
|
||||
referralCode?: string | null,
|
||||
): Promise<AuthResponse> => {
|
||||
@@ -182,6 +183,7 @@ export const authApi = {
|
||||
{
|
||||
code,
|
||||
state,
|
||||
device_id: deviceId || undefined,
|
||||
campaign_slug: campaignSlug || undefined,
|
||||
referral_code: referralCode || undefined,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user