supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
486 stars 120 forks source link

EmailAuth.tsx ignores redirectTo #117

Closed pmaddi closed 1 year ago

pmaddi commented 1 year ago

Bug report

Appears to be implemented correctly in svelte but not tsx. I've been running into this for weeks and thought I had a bug in my code

Describe the bug

See https://github.com/supabase/auth-ui/blob/2232e5f9d388648e0c37d84ba021518137579747/packages/react/src/components/Auth/interfaces/EmailAuth.tsx#L87 vs https://github.com/supabase/auth-ui/blob/14245e3fa1df03e20a734252e317fb59e72b2d57/packages/svelte/src/lib/Auth/interfaces/EmailAuth.svelte#L48

the emailRedirectTo param is not passed to the auth.signUp function.

To Reproduce

Set up a Auth usage and specify a url to redirectTo

pmaddi commented 1 year ago

Probably the cause of https://github.com/supabase/auth-ui/issues/72 and https://github.com/supabase/auth-ui/issues/76