Auth works but not with cookie
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-06 17:43:57 +02:00
parent 3b5ac81cc3
commit 00cf0d9905
3 changed files with 16 additions and 7 deletions

View File

@ -13,6 +13,11 @@ const Users: CollectionConfig = {
verify: false, // Require email verification before being allowed to authenticate
maxLoginAttempts: 5, // Automatically lock a user out after X amount of failed logins
lockTime: 600 * 1000, // Time period to allow the max login attempts
cookies: {
secure: true,
sameSite: "lax",
domain: process.env.ASTRO_HOST
},
},
fields: [
// Email added by default