Skip to content

Getting Error 500 #14

Description

@Az1m04

I am getting user not logged in issue in serverAuth

when i login i am getting currentUser in session but when i click on add to favorite i got error from server 500

session {
user: { name: 'AzimUser', email: 'azim06@gmail.com', image: '' },
expires: '2023-06-13T04:02:44.961Z'
}
[next-auth][error][CLIENT_FETCH_ERROR]
https://next-auth.js.org/errors#client_fetch_error undefined {
error: {},
url: 'http://localhost:3000/api/auth/session',
message: undefined
}
session null
Error: Not Signed in
at serverAuth (webpack-internal:///(api)/./lib/serverAuth.tsx:16:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handler (webpack-internal:///(api)/./pages/api/favorite.ts:15:38)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions