Auth0 Home Blog Docs

Addtional params in Passwordless email template


#1

Hi all,

When I call the API POST /passwordless/start I want to send extra parameters and access them in the email template. How can I do that?

Example:
{
“client_id”: “XXXXXXxxxxxxxxxxxxxx”,
“connection”: “email”,
“email”: "xxx@mailinator.com",
“send”: “link”,
“authParams”: {
“scope”: “openid roles offline_access email”
},
"isLogin": "true"
}

then access it in the email template :
{% if authParams.isLogin == ‘true’ %}
Login is true
{% else %}
Login is false
{% endif %}

Thank you.