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