Skip to content

Having trouble in getting the session data when clicking the favorite toggle. #18

Description

@pixaque

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

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