-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unauthorized Error when Creating a New Post #5574
Comments
I solved this issue by deleting the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I am encountering an unauthorized error when attempting to create a new post, even though I am logged in via GitHub. Upon modifying the code in
pages/api/post/index.ts
to log the session, I observed the following error:Modified code to observe the issue
on the other hand when I delete a post and log session then I get user information there.
whereas if I do
console.log('POST Session: ', session);
above I get nullNode version: v21.3.0
NPM version: 10.2.4
npm list next:
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
└── [email protected]
The text was updated successfully, but these errors were encountered: