Auth0-deploy-cli yaml configuration: Add an action to a flow

I used auth0-deploy-cli to import an action. Here is my yaml -

actions:
  - name: init-user
    code: ./actions/init-user.js
    deployed: true
#    runtime: node16
    supported_triggers:
      - id: post-login
        version: v2
    secrets:
      - name: domain
        value: XXX
      - name: clientId
        value: XXX
      - name: clientSecret
        value: XXX

While the action is imported, it is not added to the login flow as I was expecting it to be -

What do I do in the yaml configuration to make it part of the login flow?

1 Like

Hi @securitan,

Welcome to the Auth0 Community!

It looks like you need to update the trigger bindings.

Can you try adding the following:

triggers:
  post-login:
    - action_name: init-user
      display_name: init-user
1 Like

Thank you, @dan.woda! That works!

Is there a way to define the order in which the actions execute in a flow like we do in rules?

1 Like

Yes, the order they are in should be the order in which they run (per trigger type). Does that help?

That makes sense. Thanks, @dan.woda!

1 Like

Great! Let us know if there is anything else we can do.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.