# Is it possible to protect an API using Auth0?

**URL:** <https://community.auth0.com/t/is-it-possible-to-protect-an-api-using-auth0/112427>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [July 29, 2023, 8:45pm UTC](https://community.auth0.com/t/is-it-possible-to-protect-an-api-using-auth0/112427 "2023-07-29T20:45:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TP850](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tp850/32/49434_2.png) [@TP850](https://community.auth0.com/u/TP850)\
**Post date:** [July 29, 2023, 8:45pm UTC](https://community.auth0.com/t/is-it-possible-to-protect-an-api-using-auth0/112427/1 "2023-07-29T20:45:03Z")

</div>

I’ve been following the guide to try and set up Auth0 in an express.js application, however, everything seems to be targeted towards serving pages from express. Does anyone know if its possible to setup Auth0 in a MERN stack application that allows users to sign in on the front end, but also protects the backend API endpoints?

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [July 30, 2023, 11:27pm UTC](https://community.auth0.com/t/is-it-possible-to-protect-an-api-using-auth0/112427/3 "2023-07-30T23:27:40Z")

</div>

Hi @TP850

Welcome to the Auth0 Community, great to have you on board 😃

We have some quickstart guides you can follow to get started for example, you can use this to setup Authorization in a Express.js API [https://auth0.com/docs/quickstart/backend/nodejs](https://auth0.com/docs/quickstart/backend/nodejs)

This one will help you set up login/sign up using a React front end [https://auth0.com/docs/quickstart/spa/react](https://auth0.com/docs/quickstart/spa/react)

These are the best places to start. I hope this helps.  
Warm regards.

---

<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:** [August 13, 2023, 11:28pm UTC](https://community.auth0.com/t/is-it-possible-to-protect-an-api-using-auth0/112427/4 "2023-08-13T23:28:04Z")

</div>

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