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