add verification support

This commit is contained in:
AceDataCloud committed 2022-04-05 19:38:04 +08:00
1 parent 91a5420a76
commit cc43fb39e8
10 files changed
+98 -29

No files matched your search

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