# 401 Unauthorized issue at /api/auth/me!

**URL:** <https://community.auth0.com/t/401-unauthorized-issue-at-api-auth-me/89761>\
**Category:** Get Help\
**Tags:** api, login, auth0\
**Created:** [August 31, 2022, 11:10am UTC](https://community.auth0.com/t/401-unauthorized-issue-at-api-auth-me/89761 "2022-08-31T11:10:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [October 11, 2022, 10:45pm UTC](https://community.auth0.com/t/401-unauthorized-issue-at-api-auth-me/89761/5 "2022-10-11T22:45:36Z")

</div>

Hey there @jack6!

This is expected behavior - The front end uses `/api/auth/me` endpoint to check if the user is authenticated or not (401 = logged out, 200 = logged in). You could technically adjust the profile handler to _not_ return 401, but this would also require you to write your own front end code to get the user sessions since the `useUser` hook expects that API to respond with a 401 if the user is unauthenticated.

Given this has surfaced multiple times already, I definitely recommend creating a [feedback request](https://community.auth0.com/c/feedback/95) as our product team monitors these for community engagement.

---

_[View the full topic](https://community.auth0.com/t/401-unauthorized-issue-at-api-auth-me/89761)._
