# \#auth0-rules

**URL:** https://community.auth0.com/tag/auth0-rules/1349.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [For development purposes, how can I call my local web api from auth0 rule](https://community.auth0.com/t/for-development-purposes-how-can-i-call-my-local-web-api-from-auth0-rule/56168)

<div class="topic-metadata">

**Author:** [@tdesai](https://community.auth0.com/u/tdesai)\
**Replies:** 5\
**Last updated:** [January 14, 2021, 8:12pm UTC](https://community.auth0.com/t/for-development-purposes-how-can-i-call-my-local-web-api-from-auth0-rule/56168 "2021-01-14T20:12:38Z")

</div>

For development purposes, I want to call my local web api from auth0 rule. The error I get is (pulled from rules logs) - Error: getaddrinfo ENOTFOUND my-web-api-1.com at GetAddrInfoReqWrap.onlookup \[as oncomplete\] (dns…

---

## [Get username with auth0 react sdk](https://community.auth0.com/t/get-username-with-auth0-react-sdk/47514)

<div class="topic-metadata">

**Author:** [@gmwill934](https://community.auth0.com/u/gmwill934)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 8:12am UTC](https://community.auth0.com/t/get-username-with-auth0-react-sdk/47514 "2020-08-06T08:12:34Z")

</div>

So I am trying to get the username from my user object thats retried with the useAuth0 hook. function (user, context, callback) { context.idToken\['username'\] = user.username; return callback(null, user, context); } T…

---

## [Does the account link extension rule finish before executing the next rule?](https://community.auth0.com/t/does-the-account-link-extension-rule-finish-before-executing-the-next-rule/43345)

<div class="topic-metadata">

**Author:** [@alexab](https://community.auth0.com/u/alexab)\
**Replies:** 3\
**Last updated:** [January 8, 2024, 8:21am UTC](https://community.auth0.com/t/does-the-account-link-extension-rule-finish-before-executing-the-next-rule/43345 "2024-01-08T08:21:46Z")

</div>

My objective is to enable account linking in our application, where users are primarily passwordless authenticated. After installing the extension and modifying the custom domain I tried logging in with a Google account,…

---

## [Injecting permissions into JWT token using Auth0 rules](https://community.auth0.com/t/injecting-permissions-into-jwt-token-using-auth0-rules/38817)

<div class="topic-metadata">

**Author:** [@herry](https://community.auth0.com/u/herry)\
**Replies:** 2\
**Last updated:** [January 8, 2024, 8:23am UTC](https://community.auth0.com/t/injecting-permissions-into-jwt-token-using-auth0-rules/38817 "2024-01-08T08:23:53Z")

</div>

Hi, I want to inject permissions into the user’s JWT token where the permissions is obtained from a public authorisation API. I tried to use the following rule but failed: function (user, context, callback) { const u…
