feature: localization's first implmentation
This commit is contained in:
@@ -53,6 +53,13 @@ export const authApi = {
|
||||
await apiClient.post('/auth/logout');
|
||||
},
|
||||
|
||||
updateLanguage: async (
|
||||
language: string,
|
||||
): Promise<{ success: boolean; data: { user: { language: string } } }> => {
|
||||
const response = await apiClient.patch('/auth/profile/language', { language });
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// Refresh token
|
||||
refreshToken: async (refreshToken: string): Promise<{ accessToken: string }> => {
|
||||
const response = await apiClient.post('/auth/refresh', { refreshToken });
|
||||
|
||||
Reference in New Issue
Block a user