Passwordless connection by a0deploy cli

We have configured an email connection to enable passwordless on our tenant, however en using a0deploy export an error is being thrown TypeError: Cannot read properties of undefined (reading ‘email’)
at node_modules\auth0-deploy-cli\lib\context\yaml\handlers\connections.js:73:59

Also where can I find some resources on how to set up the email connection via a0deploy cli?

Hi there!

Thank you for reaching out to us and providing all the information of your use case! I’m sorry for the delay, and I appreciate your patience.

Please allow us some time to gather more information on the matter and we will be back with an answer as soon as possible.

Thanks,
Dawid

Hello,

Upgrade auth0-deploy-cli
Make sure you’re using at least version 7.14.2—this added better error handling and will warn you if expecting missing files

Check and define options.email in your connection config
Your YAML under connections: should look like this:

  • name: email
    strategy: email
    options:
    email:
    body: ./connections/email.html
    from: “Your App support@yourapp.com
    syntax: liquid
    subject: “Your login code”
    totp:
    length: 6
    time_step: 900

Best Regard,
Angela