github auth0/auth0-spa-js v1.16.1
Release v1.16.1

latest releases: v2.1.3, v2.1.2, v2.1.1...
3 years ago

This release fixes an edge case when using logout({ localOnly: true }), where it generates a race condition if you happen to query for SDK state directly after logging out.

Now, logout can return a Promise when using a custom cache implementation. In general, if you're interested in accurately assessing SDK state after logging out locally, you should await the result and act afterwards.

const logout = async () => {
  await auth0.logout({ localOnly: true });
  
  const authed = await isAuthenticated();
}

Fixed

Don't miss a new auth0-spa-js release

NewReleases is sending notifications on new releases.