UNPKG

expo-dev-launcher

Version:

Pre-release version of the Expo development launcher package for testing.

17 lines (13 loc) 443 B
import { getUserProfileAsync } from './getUserProfileAsync'; import { setSessionAsync } from '../apiClient'; import { restoreSessionAsync } from '../native-modules/DevLauncherAuth'; export async function restoreUserAsync() { const session = await restoreSessionAsync(); if (session) { // @ts-ignore await setSessionAsync(session); const userData = await getUserProfileAsync(); return userData; } return undefined; }