props are no longer available in server side functions, I wonder if it's possible to get needed info from
headers()
?
r
rp_st
02/11/2023, 4:38 AM
Hey @mopixels
rp_st
02/11/2023, 4:39 AM
We will be checking out next13 integration in the coming weeks. I’ll let you know then.
rp_st
02/11/2023, 4:39 AM
But, at the moment the getSession function requires req / res
rp_st
02/11/2023, 4:40 AM
You could make your own req / res object that’s conform with the BaseRequest and BaseResponse interface (from our backend SDK)
rp_st
02/11/2023, 4:40 AM
And pass that in
rp_st
02/11/2023, 4:40 AM
And those object would read from the header()
m
mopixels
02/13/2023, 9:47 AM
Thanks for the response. Building a
req
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 😃
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).