mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 09:57:47 +08:00
fix auth refresh request body
This commit is contained in:
@@ -164,7 +164,7 @@ export const authApi = {
|
||||
},
|
||||
|
||||
async refreshToken(): Promise<LoginResponse> {
|
||||
const response = await apiClient.post<LoginResponse>('/api/auth/refresh', {})
|
||||
const response = await apiClient.post<LoginResponse>('/api/auth/refresh')
|
||||
apiClient.setToken(response.data.access_token)
|
||||
return response.data
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user