Adesh
Explore posts from serversDTDrizzle Team
•Created by Adesh on 4/2/2025 in #help
Package pg can't be external
Solved it by add hoisting the pg package in
.npmrc
file
public-hoist-pattern[]=*pg*
3 replies
Get `auth` session when API endpoint is called from a server component
hmm, we do have the cookies there
authjs.session-token=7454b460-84ba-40fb-b42e-773e7ec14b71; authjs.csrf-token=3955a742945c7d4e5eba846e96d95ed7621e1b31bde38156591bf59d29e73888%7C7c07efc9cd83ae19ede691973019d08973f2b0ab079c68f0a2e53712db45445c; authjs.callback-url=http%3A%2F%2Flocalhost%3A3000%2Fposts
77 replies
Get `auth` session when API endpoint is called from a server component
Followed this: https://hono.dev/docs/getting-started/vercel
77 replies
Get `auth` session when API endpoint is called from a server component
This is telling next-auth to extend the session to include the user id as well, by default it doesn't
https://authjs.dev/guides/extending-the-session
77 replies