Error: (0 , _auth__WEBPACK_IMPORTED_MODULE_3__.auth) is not a function
Unanswered
Alligator mississippiensis posted this in #help-forum
Alligator mississippiensisOP
I am trying to use it as described here:
https://authjs.dev/reference/nextjs#auth
Hi guys, I am unable to use net-auth on serverside:
1 of 1 unhandled error
Next.js is up to date
Unhandled Runtime Error
Error: (0 , _authWEBPACK_IMPORTED_MODULE_3.auth) is not a function
Source
src\app\page.tsx (28:29) @ auth
26 |
27 | export default async function Home() {
29 |
30 | return (
31 | <Layout isAuthed={auth.props.isAuthedUser} is_subscribed={auth.props.is_subscribed}>
Show collapsed frames
https://authjs.dev/reference/nextjs#auth
Hi guys, I am unable to use net-auth on serverside:
1 of 1 unhandled error
Next.js is up to date
Unhandled Runtime Error
Error: (0 , _authWEBPACK_IMPORTED_MODULE_3.auth) is not a function
Source
src\app\page.tsx (28:29) @ auth
26 |
27 | export default async function Home() {
28 | const { user } = await auth();| ^
29 |
30 | return (
31 | <Layout isAuthed={auth.props.isAuthedUser} is_subscribed={auth.props.is_subscribed}>
Show collapsed frames