Add real time messaging
This commit is contained in:
parent
0163eab540
commit
9153ba841d
61 changed files with 882 additions and 230 deletions
|
|
@ -2,7 +2,8 @@ import { callApi, HTTP } from "../tools";
|
|||
import {
|
||||
IFetchLoginRequest,
|
||||
IFetchLoginResponse,
|
||||
IFetchRefreshResponse,
|
||||
IFetchRefreshResponseError,
|
||||
IFetchRefreshResponseSuccess,
|
||||
} from "./types";
|
||||
|
||||
const fetchLoginApi = async (
|
||||
|
|
@ -11,7 +12,9 @@ const fetchLoginApi = async (
|
|||
return await callApi(HTTP.POST, `auth/login`, request, true);
|
||||
};
|
||||
|
||||
const fetchRefreshApi = async (): Promise<IFetchRefreshResponse> => {
|
||||
const fetchRefreshApi = async (): Promise<
|
||||
IFetchRefreshResponseError | IFetchRefreshResponseSuccess
|
||||
> => {
|
||||
return await callApi(HTTP.GET, `auth/refresh`, undefined, true);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue