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

This commit is contained in:
Hide_D committed 2026-07-31 17:42:03 +00:00
1 parent 21d204c749
commit 596d01b6f4
6 files changed
+78 -2

No files matched your search

+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,