const { error } = await supabase.auth.signIn(
{ email },
{
redirectTo: http://localhost:3000/user/asd`,
Then I click on my email the 'magic link', and then
When my protected page pages/user/[id].js attempts to get the already authenticated user with this
export const getServerSideProps = withPageAuth({
I'm redirected back to login page when I should stay at /user/[id]` route.