Add real time messaging

This commit is contained in:
Aslan 2026-01-11 14:17:34 -05:00
parent 0163eab540
commit 9153ba841d
61 changed files with 882 additions and 230 deletions

View file

@ -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);
};