Hi Mr, Erdeljac,
I copied this repo and tested it on my local system. For only one time it worked fine then suddenly don't know what got breaked.
When i click on favorite it gave me an error.
in lib.serverAuth.ts file.
const session = await getSession({ req });
This line is not gettting the session? So I added the session manully like below:
const session = {
user: { name: 'justasad', email: 'test@test.com', image: '' },
expires: '2023-11-03T04:56:44.023Z'
};
And it worked fine and worked smoothly. I would really appreciate if you take a look into it and help me resolving the issue.
Regards,
Asad Ullah
Hi Mr, Erdeljac,
I copied this repo and tested it on my local system. For only one time it worked fine then suddenly don't know what got breaked.
When i click on favorite it gave me an error.
in lib.serverAuth.ts file.
const session = await getSession({ req });
This line is not gettting the session? So I added the session manully like below:
const session = {
user: { name: 'justasad', email: 'test@test.com', image: '' },
expires: '2023-11-03T04:56:44.023Z'
};
And it worked fine and worked smoothly. I would really appreciate if you take a look into it and help me resolving the issue.
Regards,
Asad Ullah