mobile update
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user