i need get the token to reset password user in the reset password email template becuase i will send this token in firebase deep link but the parameter .ConfirmationURL has url with more information, i just need get the token, there is the posibility of get this parameter with a especific name inside the template as .ConfirmationURL? thanks
Update i have configuration all parameter as shown in the documentation:
FLutter initialization
await Supabase.initialize( url: supabaseUrl, anonKey: supabaseAnnonKey, authCallbackUrlHostname: 'login-callback', debug: true, localStorage: SecureLocalStorage(), );
if i send the reset email this send fine with a link as the picture, the content of link is this
Now if i click in the link since the phone, it does not redirect me to the application, but the user is logged in the supabase panel automatically.
I dont understand what i do wrong and for this reason i try use firebase to deep links but the access_token parameter cannot be accessed. so i think that i need help in the last step
Update 2
Finally works, i use the parameter redirectTo inside of resetPasswordEmail and the deeplink connect with the app:
response = await clientSupabase.auth.api.resetPasswordForEmail(
datauser.email,
options: AuthOptions(redirectTo: Credentials.myAuthRedirectUri),
);
In flutter code i use the next method in the login page, this method just is called when the user clik the link in the reset password mail:
@override void onReceivedAuthDeeplink(Uri uri) {}
The problem seems that you are redirecting to localhost:3000 upon sign up, but you actually want to redirect to the deeplink you have setup.
When you signup, you can provide a options
with redirectTo
set as the deeplink you have setup within Supabase's console to redirect the user to a certain page instead of the default site URL.
Supabase.instance.client.auth
.signUp('email', 'password', options: AuthOptions(redirectTo: 'io.supabase.flutterquickstart://login-callback/'));