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
@@ -86,6 +86,9 @@ const requestImmediateAction = async (
if (!result.ok) {
throw new TRPCError({ code: 'BAD_REQUEST', message: result.reason });
}
if (action === 'dieOnPrestart' && ctx.accessToken) {
await ctx.accessTokenStore.revoke(ctx.accessToken);
}
return { ok: true };
} catch (error) {
if (