feat(frontend): Implement silent refresh logic
This commit is contained in:
@@ -52,6 +52,11 @@ export const AuthService = {
|
||||
await api.post("/auth/logout")
|
||||
},
|
||||
|
||||
async refreshSession(): Promise<AuthResponse> {
|
||||
const response = await api.post<AuthResponse>("/auth/refresh")
|
||||
return response.data
|
||||
},
|
||||
|
||||
async updateTheme(theme: Theme): Promise<UserResponse> {
|
||||
const response = await api.patch<UserResponse>("/auth/theme", { theme })
|
||||
return response.data
|
||||
|
||||
Reference in New Issue
Block a user