Next.js Discord

Discord Forum

AuthSystem - trpc next15

Answered
Pine Bunting posted this in #help-forum
Open in Discord
Avatar
Pine BuntingOP
Hey, I have another question. I'm currently trying to convert my AuthSystem from Next 14 to Next15.

the cookie set works
(await cookies()).set('viewToken', data, {
        httpOnly: true,
        maxAge: 24 * 60 * 60,
        sameSite: “strict”
    });


but the cookie get does not work with uploadthing in the middleware or in the trpc context
Answered by Pine Bunting
sameSite "lax" was the solution
View full answer

1 Reply

Avatar
Pine BuntingOP
sameSite "lax" was the solution
Answer