优化后台界面与无操作退出体验
This commit is contained in:
@@ -11,11 +11,6 @@ export type ExtendResponse = {
|
||||
expiresAt: string;
|
||||
};
|
||||
|
||||
export type UnlockResponse = {
|
||||
accessToken: string;
|
||||
expiresAt: string;
|
||||
};
|
||||
|
||||
export type LoginKeyResponse = {
|
||||
key_id: string;
|
||||
public_key: string;
|
||||
@@ -43,7 +38,4 @@ export const extendToken = (token: string): Promise<AxiosResponse<ExtendResponse
|
||||
export const getLoginKey = (): Promise<AxiosResponse<LoginKeyResponse>> =>
|
||||
authClient.get<LoginKeyResponse>("/api/v1/auth/login-key");
|
||||
|
||||
export const unlockSession = (payload: EncryptedPasswordRequest): Promise<AxiosResponse<UnlockResponse>> =>
|
||||
authClient.post<UnlockResponse>("/api/v1/auth/unlock", payload);
|
||||
|
||||
export default authClient;
|
||||
|
||||
Reference in New Issue
Block a user