session does not exist in SSR using with createProxySSGHelpers
Hello, I'm following TRPC docs and I want to fetch user decks in getServerSideProps using createProxySSGHelpers, but I'm getting 'UNAUTHORIZED' error
am I missing something? it should be returned from createContextInner right?
6 Replies
the procedure is called
getAllUserDecks
but createContextInner
doesnt have an useryes and its looks like this
getAllUserDecks takes userID from session, and session should exist in createContextInner?
yep
get user session from next-auth before the
const ssg
pass it down on the inner contextouhhh thank you, that worked
one more question, is it normal to still se a loading for a half of second when prefetching data for query?
ssr so yea
thanks