Hi,
the token is being set on
Domain=localhostinstead of my production domain. How do I change that?
Cheers,
René
Found it. For anyone else looking for it.
In your auth collection (usually the users), define the domain as needed:
auth: {
useAPIKey: true,
maxLoginAttempts: 10,
cookies: {
sameSite: 'none',
secure: true,
domain: 'localhost',
},
},
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.