They are not stored anywhere.
Does this mean that they are rendered invalid each time an instance is restarted?
No.
If they are not stored anywhere, and yet they're still valid after a server restart, that means they're stored somewhere else? Where? How are they kept persistant?
They are not stored anywhere.
Hi,
The tokens are signed JSONs containing:
userId
expiration
dateIf you don't give any date at creation they will be 7 Days valid.
They are signed with a key stored in the Traccar DB (tc_keystore
table), so only the key pair appears in the database.
This is how tokens remain valid despite server restarts.
For full implementation details see this folder in the source code of Traccar.
Hi, thank you for the info!
What table are the user tokens held in? Are they stored in the DB?