mopixels
02/10/2023, 7:17 PMgetServerSideProps
it was like this:
await getSession(req, res, {
overrideGlobalClaimValidators: () => []
})
Since req
and res
props are no longer available in server side functions, I wonder if it's possible to get needed info from headers()
?rp_st
02/11/2023, 4:38 AMrp_st
02/11/2023, 4:39 AMrp_st
02/11/2023, 4:39 AMrp_st
02/11/2023, 4:40 AMrp_st
02/11/2023, 4:40 AMrp_st
02/11/2023, 4:40 AMmopixels
02/13/2023, 9:47 AMreq
and res
object is quit a hassle 😕 Probably will go with session verification in api route until you guys release integration with next13, unless you have some boiler plate for building res and req objects 😃rp_st
02/13/2023, 10:14 AM