feat: implement user session management with Redis and add game token verification

This commit is contained in:
2025-12-30 01:55:40 +00:00
parent 29523ef22f
commit f01a21f2f0
28 changed files with 477 additions and 27 deletions
+12 -1
View File
@@ -11,7 +11,18 @@ const buildCaller = () => {
sessionTtlSeconds: 3600,
gameSessionTtlSeconds: 600,
});
return appRouter.createCaller(createGatewayApiContext({ users, sessions }));
const flushPublisher = {
publishUserFlush: async () => {},
};
return appRouter.createCaller(
createGatewayApiContext({
users,
sessions,
flushPublisher,
gameTokenSecret: 'test-secret',
gameSessionTtlSeconds: 600,
})
);
};
describe('gateway auth flow', () => {