Anyone knows how to use
with
?
supabase-auth-helper's
withAuthRequired
generates a
getServerSideProps
method.
But Next's
middleware
has a different API than
getServerSideProps
. It receives
response
, but I can't seem to be able to access a
NextAPIRequest
object, which
withAuthRequired
needs.