# Clarification about supported APIs in Auth0 rules

**URL:** <https://community.auth0.com/t/clarification-about-supported-apis-in-auth0-rules/10764>\
**Category:** Get Help\
**Created:** [April 10, 2018, 6:38am UTC](https://community.auth0.com/t/clarification-about-supported-apis-in-auth0-rules/10764 "2018-04-10T06:38:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipp.zins](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@philipp.zins](https://community.auth0.com/u/philipp.zins)\
**Post date:** [April 10, 2018, 6:38am UTC](https://community.auth0.com/t/clarification-about-supported-apis-in-auth0-rules/10764/1 "2018-04-10T06:38:28Z")

</div>

Hi there,

I have some questions about Auth0 rules:

1. Can I savely use “Promise” or is this not officially supported? It is available (verified by “console.log”), but your web editor highlights it as “undefined”, which doesn’t seem to be true.

2. It is possible to `require('bluebird')` in a rule, but it isn’t listed here: [https://auth0.com/docs/appliance/modules](https://auth0.com/docs/appliance/modules) Is this officially supported?

3. Do you consider switching rules to ES Modules? Currently a rule as documented in the docs isn’t valid JavaScript at all (no function name). You probably use it with some wrapper/templated function, but this makes tooling around rules harder.

---

<div class="post-metadata">

**Author:** ![odell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/odell/32/10456_2.png) [@odell](https://community.auth0.com/u/odell)\
**Post date:** [April 12, 2018, 11:06am UTC](https://community.auth0.com/t/clarification-about-supported-apis-in-auth0-rules/10764/3 "2018-04-12T11:06:21Z")

</div>

You’ve likely seen it by now, but rules will soon use Node 8: [http://community.auth0.com/t/auth0-extensibility-node-8-migration/10796](http://community.auth0.com/t/auth0-extensibility-node-8-migration/10796)

If you’ve signed up with a new account, perhaps you already have Node 8… you can check  
`console.log('Node version:', process.env.NODE_VERSION);`

---

<div class="post-metadata">

**Author:** ![philipp.zins](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@philipp.zins](https://community.auth0.com/u/philipp.zins)\
**Post date:** [April 12, 2018, 11:28am UTC](https://community.auth0.com/t/clarification-about-supported-apis-in-auth0-rules/10764/4 "2018-04-12T11:28:23Z")

</div>

Thanks, yeah I saw that yesterday. So we can safely use Promise.

---

<div class="post-metadata">

**Author:** ![jerdog](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerdog/32/11231_2.png) [@jerdog](https://community.auth0.com/u/jerdog)\
**Post date:** [April 12, 2018, 12:57pm UTC](https://community.auth0.com/t/clarification-about-supported-apis-in-auth0-rules/10764/5 "2018-04-12T12:57:06Z")

</div>

That is correct, you should be good.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 17, 2018, 10:46am UTC](https://community.auth0.com/t/clarification-about-supported-apis-in-auth0-rules/10764/6 "2018-12-17T10:46:36Z")

</div>


