Problem handling magic link sign in
Hi, I'm trying to set up magic link login in my NextJS app. I'm using supabaseClient.auth.signInWithOtp, but when I click the magic link inside the email, I get rerouted to http://localhost:3000/#access_token="ACCESS_TOKEN"&token_type=bearer&type=magiclink, however I'm not sure how I should handle the access token on my side.
I'm making use of @supabase/auth-helpers-nextjs and the withPageAuth wrapper, so trying to protect pages using that, I'm wondering if I need to pass the token somewhere in there to store it, or how can I persist the session in this way?
I'm making use of @supabase/auth-helpers-nextjs and the withPageAuth wrapper, so trying to protect pages using that, I'm wondering if I need to pass the token somewhere in there to store it, or how can I persist the session in this way?