# Http://localhost:3000/api/auth/me returns 404 in Console

**URL:** <https://community.auth0.com/t/http-localhost-3000-api-auth-me-returns-404-in-console/82831>\
**Category:** Get Help\
**Tags:** api, nextjs, login, auth0\
**Created:** [May 4, 2022, 1:46am UTC](https://community.auth0.com/t/http-localhost-3000-api-auth-me-returns-404-in-console/82831 "2022-05-04T01:46:56Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![wisenickel5](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wisenickel5/32/37076_2.png) [@wisenickel5](https://community.auth0.com/u/wisenickel5)\
**Post date:** [May 9, 2022, 9:55pm UTC](https://community.auth0.com/t/http-localhost-3000-api-auth-me-returns-404-in-console/82831/8 "2022-05-09T21:55:56Z")

</div>

@ty.frith I am feeling intense bittersweet emotions after finding an insultingly simple solution to this issue.

Found in the [readme.md](https://github.com/auth0/nextjs-auth0#base-path-and-internationalized-routing) of the NextJS-Auth0 repository…  
This small snippet of code fixed all of my issues after hours of searching for a solution -

```plaintext
// _app.js
function App({ Component, pageProps }) {
  return (
    <UserProvider loginUrl="/foo/api/auth/login" profileUrl="/foo/api/auth/me">
      <Component {...pageProps} />
    </UserProvider>
  );
}

```

Now to get back to wiping the tears off my desk…

---

_[View the full topic](https://community.auth0.com/t/http-localhost-3000-api-auth-me-returns-404-in-console/82831)._
