Auth0 Home Blog Docs

Addtional params in Passwordless email template


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?

“client_id”: “XXXXXXxxxxxxxxxxxxxx”,
“connection”: “email”,
“email”: "",
“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.