feat: implement user session management with Redis and add game token verification
This commit is contained in:
1 parent
29523ef22f
commit
f01a21f2f0
28 files changed
+477
-27
No files matched your search
@@ -1,10 +1,13 @@
|
||||
import type { UserRecord } from './userRepository.js';
|
||||
import type { UserRecord, UserSanctions } from './userRepository.js';
|
||||
|
||||
export interface GatewaySessionInfo {
|
||||
sessionToken: string;
|
||||
userId: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
roles: string[];
|
||||
sanctions: UserSanctions;
|
||||
createdAt: string;
|
||||
issuedAt: string;
|
||||
}
|
||||
|
||||
@@ -15,6 +18,9 @@ export interface GameSessionInfo {
|
||||
userId: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
roles: string[];
|
||||
sanctions: UserSanctions;
|
||||
createdAt: string;
|
||||
issuedAt: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user