github sidebase/nuxt-auth 0.5.0-rc.0

latest releases: v1.0.2, 1.0.1, v1.0.0...
2 years ago

This is the first release candidate of 0.5.0.

Breaking change: useSession was renamed to useAuth

The useSession composable is deprecated. useSession is now called useAuth:

const { status } = useAuth()

To upgrade:

  1. install the latest module version
  2. replace all useSession composable calls with useAuth
  3. Clean the nuxt cache (rm -r .nuxt ) so that it correctly picks up the renaming

Addition: Guest Mode

You can now use guest mode on your pages:

definePageMeta({
  auth: {
    unauthenticatedOnly: true,
    navigateAuthenticatedTo: '/profile'
  }
})

More extended release notes will follow with the general release.

What's Changed

New Contributors

Full Changelog: 0.4.4...0.5.0-rc.0

Don't miss a new nuxt-auth release

NewReleases is sending notifications on new releases.