# Nextjs Frontend with different Backends

**URL:** <https://community.auth0.com/t/nextjs-frontend-with-different-backends/133403>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [May 4, 2024, 6:36pm UTC](https://community.auth0.com/t/nextjs-frontend-with-different-backends/133403 "2024-05-04T18:36:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicola.hofstetter](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nicola.hofstetter](https://community.auth0.com/u/nicola.hofstetter)\
**Post date:** [May 4, 2024, 6:36pm UTC](https://community.auth0.com/t/nextjs-frontend-with-different-backends/133403/1 "2024-05-04T18:36:54Z")

</div>

Hi,

I have a Application with a Nextjs Frontend.  
I got three Backend API’s. So i wanted to authenticate in the frontend and request the JWT there. It should be the same for all API’s. But I can’t access my JWT.

How would you build the Security in this specific case?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 10, 2024, 9:11pm UTC](https://community.auth0.com/t/nextjs-frontend-with-different-backends/133403/3 "2024-05-10T21:11:31Z")

</div>

Hey there @nicola.hofstetter welcome to the community!

The following example may help:

> <https://github.com/auth0/nextjs-auth0/blob/main/EXAMPLES.md#access-an-external-api-from-an-api-route>

---

<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:** [May 24, 2024, 9:11pm UTC](https://community.auth0.com/t/nextjs-frontend-with-different-backends/133403/4 "2024-05-24T21:11:40Z")

</div>

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