How to use the expo-app-auth.refreshAsync function in expo-app-auth

To help you get started, we’ve selected a few expo-app-auth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / apps / native-component-list / src / screens / AppAuthScreen.tsx View on Github external
async function refreshAuthAsync({ refreshToken }: { refreshToken: string }) {
  const authState = await AppAuth.refreshAsync(config, refreshToken);
  console.log('refresh', authState);
  await cacheAuthAsync(authState);
  return authState;
}

expo-app-auth

Deprecated Expo module for interfacing with the OpenID library AppAuth

MIT
Latest version published 3 years ago

Package Health Score

36 / 100
Full package analysis

Similar packages