Friction

Workaround · Reliability & bugs · Annoyance

redirectTo not working across auth methods, useEffect used instead

1 source thread · first seen 2022-02

Every GitHub thread behind this report is closed (latest 2022-03). The problem may be fixed in current versions; check the source threads below before relying on it.

Summary

redirectTo has no effect for email/password, Google or GitHub sign-in. The user redirects manually in a useEffect hook, which they find not ideal.

Affects
Developers using supabase-js auth
Workaround
Redirect manually from a useEffect hook after sign-in

Evidence

Excerpts are copied word for word from the source; follow the link to read it in full.

“As the title suggests, redirectTo is not working for any of my auth methods”

Add what you saw Flag this report