Files
OpenFrontIO/resources/lang
Evan a09f0c67f1 Update auth & login to follow best practices (#2559)
## Description:

The previous login system used long lived jwts which could be stolen by
XSS. The current system uses long lived refresh tokens that are stored
as http-only cookies. Then the client calls /refresh to get a short
lived jwt using the refresh token. The jwt is stored in memory only so
it's discarded on page close. This way a XSS can only steal the
short-lived jwt.

It also updates how accounts work: players get an account automatically
when they join the webpage. They can see their stats even if not logged
in. If a player wants to keep their account, they can tie it to their
Discord or email, allowing them to log in if cookies are lost.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2025-12-11 11:25:27 -08:00
..
2025-06-30 19:49:42 -07:00
2025-11-21 11:51:14 -08:00
2025-06-30 19:49:42 -07:00
2025-09-07 19:54:22 -07:00
2025-07-13 07:09:42 +00:00
2025-11-06 15:49:37 -08:00
2025-11-21 11:51:14 -08:00
2025-10-08 13:58:36 -07:00
2025-06-30 19:49:42 -07:00
2025-11-21 11:51:14 -08:00
2025-09-30 11:10:34 -07:00
2025-10-08 13:58:36 -07:00
2025-09-07 19:54:22 -07:00
2025-07-13 07:09:42 +00:00
2025-10-08 13:58:36 -07:00
2025-06-30 19:49:42 -07:00
2025-11-21 11:51:14 -08:00
2025-07-26 00:05:02 -04:00
2025-09-30 11:10:34 -07:00
2025-12-09 16:13:29 -08:00
2025-12-09 16:13:29 -08:00
2025-09-07 19:54:22 -07:00
2025-11-21 11:51:14 -08:00
2025-09-07 19:54:22 -07:00
2025-10-17 14:27:47 -07:00
2025-08-09 23:57:10 -04:00
2025-06-30 19:49:42 -07:00
2025-09-30 11:10:34 -07:00
2025-11-21 11:51:14 -08:00
2025-11-21 11:51:14 -08:00