xref: /expo/home/api/AuthApi.ts (revision efd75dec)
1import ApiV2HttpClient from './ApiV2HttpClient';
2
3export async function signOutAsync(sessionSecret: string | null): Promise<void> {
4  if (!sessionSecret) {
5    return;
6  }
7  const api = new ApiV2HttpClient();
8  await api.postAsync('auth/logout');
9}
10
11export default {
12  signOutAsync,
13};
14