import { Session, SessionFactory, SessionWithAttempts } from '@oyst/utils' import { REDIS_URL as redisUrl } from '../lib/constants' const orderSession = SessionFactory({ autoExpire: 20 * 60, mainKey: 'order', redisUrl }) const cardSession = SessionFactory({ autoExpire: 20 * 60, mainKey: 'oneclick', withAttempts: true, redisUrl }) const phoneSession = SessionFactory({ autoExpire: 20 * 60, mainKey: 'oneclick-phone', redisUrl }) const userSession = SessionFactory({ autoExpire: 20 * 60, mainKey: 'user', redisUrl }) export { orderSession, cardSession, phoneSession, userSession }