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

Pass redirectTo during sign-up in EmailAuth.tsx in Solid package #129

Closed richgieg closed 1 year ago

richgieg commented 1 year ago

What kind of change does this PR introduce?

This fix is similar to #128, but for the Solid package.

Passes the redirectTo prop when calling auth.signUp in /packages/solid/src/components/Auth/interfaces/EmailAuth.tsx.

What is the current behavior?

When defining the redirectTo prop for sign up, it is currently ignored.

What is the new behavior?

The redirectTo prop is now passed to the auth.signUp call (via options.emailRedirectTo) so that it actually gets used.

Additional context

None.

silentworks commented 1 year ago

Thank you for this PR, we will get a release out soon.