supabase / gotrue-dart

A dart client library for GoTrue.
MIT License
46 stars 37 forks source link

fix: properly add redirect_to when making request #96

Closed dshukertjr closed 2 years ago

dshukertjr commented 2 years ago

What kind of change does this PR introduce?

Currently, redirect_to parameter of the request method is being URI encoded twice, resulting in wrong value being passed as the query parameter. This PR fixes it.

Fixes https://github.com/supabase-community/supabase-flutter/issues/244

What is the current behavior?

Because redirect_to is not being passed properly, emailRedirectTo is not working

What is the new behavior?

emailRedirectTo should be working with this one.

Vinzent03 commented 2 years ago

Where is it encoded the second time?

Vinzent03 commented 2 years ago

Ah the Uri constructor already handles this. https://api.dart.dev/stable/2.18.3/dart-core/Uri/Uri.html