fix(game-api): revoke token after prestart deletion

This commit is contained in:
2026-07-31 17:42:03 +00:00
parent 21d204c749
commit 596d01b6f4
6 changed files with 78 additions and 2 deletions
+3
View File
@@ -83,6 +83,7 @@ export interface GameApiContext {
uploadPath: string;
uploadPublicUrl: string | null;
auth: GameSessionTokenPayload | null;
accessToken?: string;
accessTokenStore: RedisAccessTokenStore;
flushStore: FlushStore;
gameTokenSecret: string;
@@ -100,6 +101,7 @@ export const createGameApiContext = (options: {
uploadPath: string;
uploadPublicUrl: string | null;
auth: GameSessionTokenPayload | null;
accessToken?: string;
accessTokenStore: RedisAccessTokenStore;
flushStore: FlushStore;
gameTokenSecret: string;
@@ -117,6 +119,7 @@ export const createGameApiContext = (options: {
uploadPath: options.uploadPath,
uploadPublicUrl: options.uploadPublicUrl,
auth: options.auth,
...(options.accessToken ? { accessToken: options.accessToken } : {}),
accessTokenStore: options.accessTokenStore,
flushStore: options.flushStore,
gameTokenSecret: options.gameTokenSecret,