Adesh
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
Get `auth` session when API endpoint is called from a server component
The session check in the server component to validate if the page should render or not.
But the session check for the api is for when someone hits the backend endpoint from say postman, (It is here where it is not workgin)
77 replies