mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 09:14:09 +00:00
Better handling of bad tokens (#1180)
## Description: - Better handling of bad tokens - Send a code and reason when closing the websocket more consistently. ## 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 - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
co-authored by
Scott Anderson
parent
c8f04d08e0
commit
b17b925b3b
+1
-1
@@ -144,7 +144,7 @@ const SafeString = z
|
||||
)
|
||||
.max(1000);
|
||||
|
||||
const PersistentIdSchema = z.string().uuid();
|
||||
export const PersistentIdSchema = z.string().uuid();
|
||||
const JwtTokenSchema = z.string().jwt();
|
||||
const TokenSchema = z
|
||||
.string()
|
||||
|
||||
Reference in New Issue
Block a user