edwinn1337
01/31/2023, 8:48 AM.vercel.app
and cookieSameSite: none
what are we missing?rp_st
01/31/2023, 8:48 AMrp_st
01/31/2023, 8:48 AM.vercel.app
is a special domain - it's in the public suffix listrp_st
01/31/2023, 8:48 AMedwinn1337
01/31/2023, 8:50 AMrp_st
01/31/2023, 8:51 AMedwinn1337
01/31/2023, 8:51 AMedwinn1337
01/31/2023, 9:03 AMedwinn1337
01/31/2023, 9:03 AMrp_st
01/31/2023, 9:04 AMedwinn1337
01/31/2023, 9:46 AMjs
supertokens.init(backendConfig())
export default async function handler(req: SessionRequest, res: NextApiResponse & Response) {
// we first verify the session
await superTokensNextWrapper(async next => verifySession()(req, res, next), req, res)
session is invalid, thats due to cookies not accepted
Our backendConfig we got
js
Session.init({
cookieDomain: process.env.NODE_ENV === 'production' ? '.domain.nl' : 'localhost',
cookieSameSite: process.env.NEXT_PUBLIC_APP_STAGE && process.env.NODE_ENV === 'development' ? 'strict' : 'none',
frontendConfig
js
Session.init({
cookieDomain: process.env.NODE_ENV === 'production' ? '.domain.nl' : 'localhost',
rp_st
01/31/2023, 9:48 AMedwinn1337
01/31/2023, 9:48 AMedwinn1337
01/31/2023, 9:49 AMrp_st
01/31/2023, 9:49 AMedwinn1337
01/31/2023, 9:54 AMrp_st
01/31/2023, 9:58 AMedwinn1337
01/31/2023, 10:09 AMedwinn1337
01/31/2023, 10:09 AMrp_st
01/31/2023, 10:22 AMmib200
01/31/2023, 3:14 PMmib200
01/31/2023, 3:15 PMmib200
01/31/2023, 3:15 PMmib200
01/31/2023, 3:16 PMmib200
01/31/2023, 3:16 PMmib200
01/31/2023, 3:17 PMmib200
01/31/2023, 3:18 PMmib200
01/31/2023, 3:18 PMmib200
01/31/2023, 3:20 PMrp_st
01/31/2023, 3:24 PMmib200
01/31/2023, 5:54 PMmib200
01/31/2023, 5:54 PMrp_st
01/31/2023, 5:57 PMmib200
02/01/2023, 2:37 AMmib200
02/01/2023, 2:38 AMmib200
02/01/2023, 2:39 AMrp_st
02/01/2023, 6:15 AMnone
mib200
02/01/2023, 2:46 PMmib200
02/01/2023, 2:47 PMmib200
02/01/2023, 2:48 PMmib200
02/01/2023, 2:48 PMmib200
02/01/2023, 2:48 PMrp_st
02/01/2023, 2:51 PMrp_st
02/01/2023, 2:52 PM