mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 09:40:13 +00:00
feat: refresh token
This commit is contained in:
@@ -5,6 +5,10 @@ export const getProfile = async (): Promise<User> => {
|
||||
return fetcher<User>(FetcherMethod.GET, '/api/v1/profile', null)
|
||||
}
|
||||
|
||||
export const refreshToken = async (): Promise<any> => {
|
||||
return fetcher<any>(FetcherMethod.GET, '/api/v1/refresh_token', null)
|
||||
}
|
||||
|
||||
export const login = async (username: string, password: string): Promise<any> => {
|
||||
return fetcher<any>(FetcherMethod.POST, '/api/v1/login', { username, password })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user