# Non blocking "Rules"

**URL:** <https://community.auth0.com/t/non-blocking-rules/60130>\
**Category:** Get Help\
**Tags:** rules\
**Created:** [March 26, 2021, 5:41pm UTC](https://community.auth0.com/t/non-blocking-rules/60130 "2021-03-26T17:41:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gratus-BenchSci](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gratus-benchsci/32/22674_2.png) [@Gratus-BenchSci](https://community.auth0.com/u/Gratus-BenchSci)\
**Post date:** [March 26, 2021, 5:41pm UTC](https://community.auth0.com/t/non-blocking-rules/60130/1 "2021-03-26T17:41:17Z")

</div>

Hi I am looking to integrate side effects which should not impact the outcome of the authentication.

Currently, I am using rules, but rules are executed in sequence and add to the overall latency of the authentication process.

I am wondering if there is a process to trigger something on a successful login that gets executed asynchronously seperate from the authentication flow - for example everytime a user logs in I want to update their metadata with some different information but I don’t want to make a management api call that is increasing the overall latency of the authentication flow.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 26, 2021, 7:42pm UTC](https://community.auth0.com/t/non-blocking-rules/60130/3 "2021-03-26T19:42:44Z")

</div>

Hi @Gratus-BenchSci,

Unfortunately, there’s not a way to set up non-blocking rules. The [Post-User Registration](https://auth0.com/docs/hooks/extensibility-points/post-user-registration) hook is non-blocking, but it only runs when a user is created.

In order to avoid the API request in the rule, you can keep the information in the ID Token as a [custom claim](https://auth0.com/docs/scopes/sample-use-cases-scopes-and-claims#add-custom-claims-to-a-token), but it won’t persist in the user’s metadata.

For more information, you can read the rules documentation:

> **[Rules Execution Best Practices](https://auth0.com/docs/customize/rules/rules-best-practices/rules-execution-best-practices)**
>
> Learn about best practices for executing Auth0 rules.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 10, 2021, 7:43pm UTC](https://community.auth0.com/t/non-blocking-rules/60130/4 "2021-04-10T19:43:28Z")

</div>

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