Skip to content
Snippets Groups Projects
Authorise.ts 272 B
Newer Older
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 });
}