#Login not working
4 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
- Production Deployment - Security - Preventing API Abuse
- Authentication Config - Options - Admin autologin
- Excluding server-only code from admin UI - Example Scenario
Community-Help:
/api/users/login returns AuthenticationPassed message. But the login page returns to original state afterwards
my auth config
auth: {
tokenExpiration: 60 * 60 * 24, // 1 day
cookies: {
sameSite:
process.env.NODE_ENV === 'production' && !process.env.DISABLE_SECURE_COOKIE
? 'None'
: 'Lax',
secure:
process.env.NODE_ENV === 'production' && !process.env.DISABLE_SECURE_COOKIE ? true : false,
domain: process.env.COOKIE_DOMAIN,
},
},