Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function refreshAuthAsync({ refreshToken }: { refreshToken: string }) {
const authState = await AppAuth.refreshAsync(config, refreshToken);
console.log('refresh', authState);
await cacheAuthAsync(authState);
return authState;
}