Unable to create a session from invite link

Hi guys, im generating sending invites from supabase studio and when i click the link on the email, im redirect to my website's route with the following hash: #access_token=123example123&expires_at=1765918904&expires_in=3600&refresh_token=123example123&token_type=bearer&type=invite but I'm never able to create a valid session so that I can login the user to allow him to set a password.
What is the standard approach?
I've tried supabase.auth.setSession() and I simply got stuck, the promise never resolves.
Was this page helpful?