Compare commits

...

2 Commits

Author SHA1 Message Date
Balázs Orbán
362e981e6d chore(release): bump package version(s) [skip ci] 2022-11-06 06:07:47 +01:00
Balázs Orbán
5198eb19f7 fix(next): build RSC+unstable_getServerSession 2022-11-06 05:53:38 +01:00
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "next-auth",
"version": "4.16.0",
"version": "4.16.1",
"description": "Authentication for Next.js",
"homepage": "https://next-auth.js.org",
"repository": "https://github.com/nextauthjs/next-auth.git",

View File

@@ -177,8 +177,10 @@ function ensureAvailable(fn: () => any) {
try {
return fn()
} catch (error) {
throw new Error(
console.error(error)
console.error(
`Could not access ${fn.name}(). If you are not in a React Server Cmponent, pass the request and response.`
)
// Cannot throw since Next.js expects DynamicServerError
}
}