refactor: simplify imports for game session token and turn command modules
This commit is contained in:
@@ -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,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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user