Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isoppp committed Sep 25, 2024
1 parent 65a8955 commit 58f4e4e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion apps/api-hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"devDependencies": {
"@types/node": "22.6.1",
"@types/react": "18.3.5",
"@vitest/browser": "2.0.5",
"npm-run-all": "4.1.5",
"tsup": "8.3.0",
"typescript": "5.6.2",
Expand Down
3 changes: 2 additions & 1 deletion apps/api-hono/src/usecases/auth/signInVerficaitionUsecase.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { prisma } from '@/lib/prisma'
import { SESSION_EXPIRATION_SEC } from '@/middlewares/cookie-session'
import type { Context } from '@/trpc/trpc'
import { TRPCError } from '@trpc/server'
import { addSeconds } from 'date-fns'
Expand Down Expand Up @@ -84,7 +85,7 @@ export const signInVerificationUsecase = async ({ ctx, input }: UseCaseArgs): Pr

const createdSession = await prisma.session.create({
data: {
expiresAt: addSeconds(new Date(), 60 * 60 * 24 * 30), // TODO
expiresAt: addSeconds(new Date(), SESSION_EXPIRATION_SEC),
userId: createdUser.id,
},
})
Expand Down
2 changes: 1 addition & 1 deletion apps/api-hono/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"moduleResolution": "Bundler",
"strict": true,
"skipLibCheck": true,
"types": ["node", "vitest/globals", "@vitest/browser/providers/playwright"],
"types": ["node", "vitest/globals"],
"jsx": "react-jsx",
"noEmit": true,
"paths": {
Expand Down
5 changes: 0 additions & 5 deletions apps/app/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ export default function App() {
credentials: 'include',
})
},
// async headers() {
// return {
// authorization: getAuthCookie(),
// };
// },
}),
],
})
Expand Down
5 changes: 2 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 58f4e4e

Please sign in to comment.