Hi All,
We have been using AuthO’s passwordless verification (sending link using email) with SendGrid email provider for the past few months. However, since 03rd Oct 2019, the magic link/the redirect URL is not being generated.
As per the logs on AuthO, I could see that the parameters are being passed to AuthO from our API but when the end user receives the email, the state and redirect_uri values are missing.
Redirect link:
{% assign id = ‘’ %}
{% assign split = link | split:"&" %}
{% for item in split %}
{% assign pair = item | split:’=’ %}
{% if pair.first == ‘state’ %}
{% assign id = pair.last %}
{% endif %}
{% endfor %}
{% assign redirect = “” | append:application.callbacks.first | append:"?code=" | append:code | append:"&id=" | append:id | append:"&email=" | append:user.email %}
AuthO log(has state and redirect_uri):
Current URL(missing redirect_uri/(application.callback_domain) and state):
I could see two issues in the generated link.
- It is missing {{ application.callback_domain }}.
- The liquid syntax(.first, .last) in email templates are not working.
Expected URL:
Any assistance is much appreciated - thank you in advance.
Thanks,
Merz