AdrianMsM91 {KBL}
07/12/2022, 9:29 AM${APP_HOST} , is not arriving the rest /authentication/recovery-password , obviously I have the URL added to: Additional redirect URLs also in:
js
const resetPasswordForEmail = async (email) => {
return supabase.auth.api.resetPasswordForEmail(email, {
redirectTo: `${APP_HOST}/authentication/recovery-password`
});
};
Then I decided tu do the trick putting this /authentication/recovery-password
js
<h2>Reset Password</h2>
<p>Follow this link to reset the password for your user:</p>
<p><a href="{{ .ConfirmationURL }}authentication/recovery-password">Reset Password</a></p>
Then looks like the URL arrives correctly but once I click It doesn't redirect to authentication/recovery-password but to ${APP_HOST}
Any solution please?jaitaiwan
07/12/2022, 11:44 PMAdrianMsM91 {KBL}
07/12/2022, 11:55 PMAdrianMsM91 {KBL}
07/12/2022, 11:55 PMAdrianMsM91 {KBL}
07/12/2022, 11:55 PMAdrianMsM91 {KBL}
07/13/2022, 12:00 AMAdrianMsM91 {KBL}
07/13/2022, 12:00 AMjaitaiwan
07/13/2022, 12:01 AMAdrianMsM91 {KBL}
07/13/2022, 12:01 AMAdrianMsM91 {KBL}
07/13/2022, 12:03 AMAdrianMsM91 {KBL}
07/13/2022, 12:03 AMjs
const resetPasswordForEmail = async (email) => {
return supabase.auth.api.resetPasswordForEmail(email, {
redirectTo: `${APP_HOST}/authentication/recovery-password`
});
};AdrianMsM91 {KBL}
07/13/2022, 12:09 AMjs
const restorePassword = async () => {
try {
setLoading(true);
const { error } = await resetPasswordForEmail(email);
if (error) throw error;
toast({
title: t('pages.authentication.login.recoveryPasswordMail'),
status: 'info',
duration: 5000,
isClosable: true
});
setForgotPassActive(false);
} catch (error) {
console.error(error.error_description || error.message);
toast({
title: error.error_description || error.message,
status: 'error',
duration: 5000,
isClosable: true
});
} finally {
setLoading(false);
setEmail('');
}
};AdrianMsM91 {KBL}
07/13/2022, 12:10 AMjaitaiwan
07/13/2022, 12:19 AMjaitaiwan
07/13/2022, 12:20 AMAdrianMsM91 {KBL}
07/13/2022, 12:21 AM${APP_HOST} you mean?jaitaiwan
07/13/2022, 12:21 AMjaitaiwan
07/13/2022, 12:21 AMAdrianMsM91 {KBL}
07/13/2022, 12:23 AMjaitaiwan
07/13/2022, 12:27 AM