(auth)(bug) fix apple login 🤞

This commit is contained in:
Andrea Vos 2024-05-15 21:44:42 +02:00
parent d80ab22c82
commit 202dd19d3c
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ app.use(express.urlencoded({ extended: true }));
app.use(cookieParser());
app.use(session({
secret: process.env.SECRET!,
cookie: longtimeCookieSetting,
cookie: { ...longtimeCookieSetting, sameSite: undefined }, // somehow, sameSite=lax breaks sign-in with apple 🙄
resave: false,
saveUninitialized: false,
store: new MemoryStore({

View File

@ -28,7 +28,7 @@ export const socialProviders = {
name: 'Apple',
redirectViaHome: true,
avatars: true,
broken: true,
// broken: true,
},
twitter: {
name: 'Twitter',