# Next.js Auth0 | External API service (without /api directory)

**URL:** <https://community.auth0.com/t/next-js-auth0-external-api-service-without-api-directory/85448>\
**Category:** Get Help\
**Tags:** nextjs\
**Created:** [June 20, 2022, 12:04pm UTC](https://community.auth0.com/t/next-js-auth0-external-api-service-without-api-directory/85448 "2022-06-20T12:04:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![felix3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/felix3/32/48057_2.png) [@felix3](https://community.auth0.com/u/felix3)\
**Post date:** [June 14, 2023, 4:20pm UTC](https://community.auth0.com/t/next-js-auth0-external-api-service-without-api-directory/85448/4 "2023-06-14T16:20:25Z")

</div>

For what it’s worth, we have a workaround by passing the accessToken to the frontend.  
I have a brief example code here: [Next.js & External API without Proxying requests through Next.js backend](https://community.auth0.com/t/next-js-external-api-without-proxying-requests-through-next-js-backend/109244)

I’m just looking for some kind of official confirmation that this is safe to do.

---

_[View the full topic](https://community.auth0.com/t/next-js-auth0-external-api-service-without-api-directory/85448)._
