https://next-auth.js.org/getting-started/upgrade-v4#next-authjwt
next-auth/jwtWe no longer have a default export in next-auth/jwt. To comply with this, change the following:
- import jwt from "next-auth/jwt"
+ import { getToken } from "next-auth/jwt"
next-auth/reactWe've renamed the client-side import source to next-auth/react. To comply with this change, you will simply have to rename anywhere you were using next-auth/client.
For example:
- import { useSession } from "next-auth/client"
+ import { useSession } from "next-auth/react"
We've also made the following changes to the names of the exports:
setOptions: Not exposed anymore, use SessionProvider propsoptions: Not exposed anymore, use SessionProvider propssession: Renamed to getSessionproviders: Renamed to getProviderscsrfToken: Renamed to getCsrfTokensignin: Renamed to signInsignout: Renamed to signOutProvider: Renamed to SessionProviderIntroduced in https://github.com/nextauthjs/next-auth/releases/tag/v4.0.0-next.12
SessionProvider