refactor: simplify imports for game session token and turn command modules

This commit is contained in:
2025-12-30 04:54:39 +00:00
parent 6fe6d54432
commit 648d186428
5 changed files with 22 additions and 15 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import type { GameSessionTokenPayload } from '@sammo-ts/common/auth/gameToken.js';
import { decryptGameSessionToken } from '@sammo-ts/common/auth/gameToken.js';
import type { GameSessionTokenPayload } from '@sammo-ts/common';
import { decryptGameSessionToken } from '@sammo-ts/common';
import { isAfter, isValid, parseISO } from 'date-fns';
import type { FlushStore } from './flushStore.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import type { GameSessionTokenPayload } from '@sammo-ts/common/auth/gameToken.js';
import type { GameSessionTokenPayload } from '@sammo-ts/common';
import type { TurnDaemonTransport } from './daemon/transport.js';
+1 -4
View File
@@ -4,10 +4,7 @@ import { TRPCError } from '@trpc/server';
import { addHours, addSeconds, isAfter, isValid, parseISO } from 'date-fns';
import { z } from 'zod';
import {
decryptGameSessionToken,
encryptGameSessionToken,
} from '@sammo-ts/common/auth/gameToken.js';
import { decryptGameSessionToken, encryptGameSessionToken } from '@sammo-ts/common';
import { procedure, router } from './trpc.js';
import { toPublicUser } from './auth/userRepository.js';