# \#best-practices

**URL:** https://community.auth0.com/tag/best-practices/1370.md

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

---

## [Getting access tokens inside another hook/reusable code for getting access tokens](https://community.auth0.com/t/getting-access-tokens-inside-another-hook-reusable-code-for-getting-access-tokens/91629)

<div class="topic-metadata">

**Author:** [@dramsay1996](https://community.auth0.com/u/dramsay1996)\
**Replies:** 3\
**Last updated:** [October 1, 2022, 4:47am UTC](https://community.auth0.com/t/getting-access-tokens-inside-another-hook-reusable-code-for-getting-access-tokens/91629 "2022-10-01T04:47:48Z")

</div>

Question: I am using auth0 to authorize access from my React application to my API. I am using JWT access tokens for every call. For every call to the API, I’m using the following custom hook to retrieve an access token …

---

## [Authenticating to APIs in the frontend](https://community.auth0.com/t/authenticating-to-apis-in-the-frontend/80008)

<div class="topic-metadata">

**Author:** [@abroadhurst](https://community.auth0.com/u/abroadhurst)\
**Replies:** 1\
**Last updated:** [March 17, 2022, 11:49pm UTC](https://community.auth0.com/t/authenticating-to-apis-in-the-frontend/80008 "2022-03-17T23:49:16Z")

</div>

SDK: express-oauth2-jwt-bearer SDK Version: 1.1.0 Node.js: 6.14.15 Once you have secured you APIs, what is most secure method of accessing those APIs from the front end? I seen a SPA app being utilised to access the A…

---

## [Conducting Effective Code Reviews](https://community.auth0.com/t/conducting-effective-code-reviews/30403)

<div class="topic-metadata">

**Author:** [@ramiro](https://community.auth0.com/u/ramiro)\
**Replies:** 5\
**Last updated:** [July 14, 2021, 11:57am UTC](https://community.auth0.com/t/conducting-effective-code-reviews/30403 "2021-07-14T11:57:56Z")

</div>

Learn about the things to pay attention to, and what to automate while reviewing code so that you can increase the speed and the quality of code reviews in your organization. Read on :laptop: Brought to you by @umut.be…

---

## [Best practice for FE to show/hide links based on permissions](https://community.auth0.com/t/best-practice-for-fe-to-show-hide-links-based-on-permissions/49370)

<div class="topic-metadata">

**Author:** [@janetsmith2000](https://community.auth0.com/u/janetsmith2000)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 8:52pm UTC](https://community.auth0.com/t/best-practice-for-fe-to-show-hide-links-based-on-permissions/49370 "2020-09-08T20:52:24Z")

</div>

What’s the best practice for showing links/button based on permissions? I have 2 choices: Filter the items at BE, and pass back the json to FE to render. FE has no knowledge about the permission. However, sometime the…
