github nextauthjs/next-auth v4.0.0-next.18

latest releases: next-auth@5.0.0-beta.18, @auth/azure-tables-adapter@1.1.0, @auth/d1-adapter@1.1.0...
pre-release2 years ago

4.0.0-next.18 (2021-07-05)

Features

  • react: make session requireable in useSession (#2236) (a2e5afa)

BREAKING CHANGES

  • react: The useSession hook now returns an object. Here is how to accommodate for this change:
- const [ session, loading ] = useSession()
+ const { data: session, status } = useSession()
+ const loading = status === "loading"

With the new status option, you can test states much more clearly.

Don't miss a new next-auth release

NewReleases is sending notifications on new releases.