add verification check and support

This commit is contained in:
AceDataCloud committed 2023-02-11 12:18:53 +08:00
1 parent 538dfd283e
commit 91c6792c5c
10 files changed
+90 -16

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
export interface IToken {
access?: string;
refresh?: string;
}
export interface ITokenResponse extends IToken {}
+11
View File
@@ -0,0 +1,11 @@
import { AxiosResponse } from 'axios';
import { httpClient } from '../instance';
import { ITokenResponse, IToken } from './models';
class AuthOperator {
async refreshToken(payload: IToken): Promise<AxiosResponse<ITokenResponse>> {
return httpClient.post('/token/refresh/', payload);
}
}
export const authOperator = new AuthOperator();