Querying DB in Actions


I’m trying to implement custom check through Actions which requires performing DB query.
In Rules there is a global configuration object which stores some values.

Is there something similar available for Actions? Or should I go back to Rules and implement my logic in there?

Thanks in advance :wink:

Hi @kacper.czerniak,

Welcome to the Auth0 Community!

Yes, this can be accomplished with Auth0 Actions. To do so, you will need to use the events.secrets object to save your Key, Value pairs. See below for an example.

Please take a look at our Actions Doc here for more details.

Please let me know if you have any further questions.

Thank you.

@rueben.tiow thanks a lot, that’s exactly what I was searching for :wink:

1 Like

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