Hi,
I am trying to allow a user to request a password reset of they forgot it. I have set up the sendgrid magic link flow and have used my “Reset password” page url as the redirect url.
I am running into issues with the redirect. When I click on the link in the email, it takes me to my website home page rather than the page I entered into the redirect setting, and there is no token in the url. Could this be because I am testing in the editor, there the url is a weird format? Or is this caused by some other reason?
Mmm ok. I don’t understand how Sendgrid is getting the URL of your homepage in its email then
If you hover over the URL in the email, do you see the editor URL or the homepage URL? (Trying to figure out if the editor URL could be redirecting to your published homepage. Not sure how that could happen but worth checking!)
I haven’t setup the Xano / Sendgrid combo in a while. Is there any chance you had your homepage there before and need to publish the change of the environment variable in Xano before it takes effect?
I know they added that a while back to changes made on API calls, not sure if they did the same for extensions.
I’ve fixed this myself. The issue was on the Xano side. In their “generate_magic_link” function the “magic_link_redirect_uri” variable was concatenated with the token without any separators, so the resulting link was like "google.comey123456", where "ey123456" is a jwt token. I’ve added “?token=” between link and token, so the result is like "google.com?token=ey123456".