You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
session.user isn't being populated by the auth() call. session is set if the user's logged in and not set if they're not, but I'm at a loss as to how to retrieve information about the currently logged in user. A sentence on how to achieve this would be appreciated.
there's some weirdness around NextApiResponse - if I return res.json(..) or res.status(..) then I get an error: TypeError: res.status is not a function.
Is there any context that might help us understand?
Firstly, I'm not at all experienced at this, and I might have missed the obvious.
The text was updated successfully, but these errors were encountered:
telng
added
docs
Relates to documentation
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Mar 6, 2024
What is the improvement or update you wish to see?
I'm attempting to implement an API route following the guidance here: https://authjs.dev/guides/upgrade-to-v5#authenticating-server-side under the API Route tab.
The code I have is a little expanded from the sample there:
A couple of things:
Is there any context that might help us understand?
Firstly, I'm not at all experienced at this, and I might have missed the obvious.
Everything's up-to-date (I think):
[email protected] /root/ax1/ax1
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Does the docs page already exist? Please link to it.
https://authjs.dev/guides/upgrade-to-v5#authenticating-server-side
The text was updated successfully, but these errors were encountered: