fix(game-api): revoke token after prestart deletion
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user