import { AxiosResponse } from 'axios'; import Api from '../../helpers/Api'; import { IUser } from '../../providers/AuthProvider'; export async function authoriseUser(): Promise<AxiosResponse<IUser>> { return Api.post('User/authorize', {}, { withCredentials: true }); }