-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getServerSession()
throws a [nuxt] [request error] [unhandled] [500] No Origin found
even though origin is set
#107
Comments
getServerSession()
returns nullgetServerSession()
throws a [nuxt] [request error] [unhandled] [500] No Origin found
even though origin is set
There seems to be a missing .env Variable that is required
The docs needs updating. |
Do you have a reproduction ? If you look at the logic here, it should work if you have a baseUrl properly set. @tobychidi |
Indeed. Adding the prefixes and the |
Closing this now, as this is not an issue with the plugin. |
got this error - i seem to have same config. i use pnpm. added the env: the alias in nuxt config the ERROR: |
Hello, |
Environment
Darwin
v18.16.0
3.7.3
3.8.4
2.6.3
[email protected]
-
devtools
,modules
,ui
,alias
,authJs
,runtimeConfig
@nuxt/[email protected]
,@hebilicious/[email protected]
,vue-email/nuxt
-
Reproduction
Full description of problem below
Describe the bug
I am making a call to getServerSession() in my API route, like this:
It throws this error:
I have set
NEXTAUTH_SECRET
andNEXTAUTH_URL
in my .env.And here is my
nuxt.config.ts
:I can't figure out why it's still throwing the error.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: