mobile update

This commit is contained in:
arrelin
2026-03-10 13:54:27 +03:00
parent 6f679a5066
commit d7802cf584
76 changed files with 1503 additions and 10 deletions

View File

@@ -46,10 +46,16 @@ export const authApi = {
me: () =>
apiClient.get<User>('/me'),
getGoogleAuthUrl: (redirectUrl?: string) =>
getGoogleAuthUrl: (redirectUrl?: string, mobile?: boolean) =>
apiClient.get<OAuthUrlResponse>('/auth/google', {
params: redirectUrl ? { redirect_url: redirectUrl } : undefined,
params: {
...(redirectUrl ? { redirect_url: redirectUrl } : {}),
...(mobile ? { mobile: true } : {}),
},
}),
mobileCallback: (token: string) =>
apiClient.get('/auth/mobile-callback', { params: { token } }),
};
export const familyApi = {