Implement authentication with SIWE #4

Merged
nabarun merged 6 commits from nv-siwe into main 2024-10-18 12:47:12 +00:00
Showing only changes of commit 24e5e8e8b1 - Show all commits

View File

@ -86,8 +86,7 @@ export const createAndStartServer = async (
saveUninitialized: true, saveUninitialized: true,
cookie: { cookie: {
secure: new URL(appOriginUrl).protocol === 'https:', secure: new URL(appOriginUrl).protocol === 'https:',
// 23 hours (less than 24 hours to avoid sessionSigs expiration issues) maxAge: 30 * 24 * 60 * 60 * 1000,
maxAge: 23 * 60 * 60 * 1000,
domain: domain || undefined, domain: domain || undefined,
sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax', sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax',
} }