# isAuthenticated is null

**URL:** <https://community.auth0.com/t/isauthenticated-is-null/110779>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [July 7, 2023, 8:58pm UTC](https://community.auth0.com/t/isauthenticated-is-null/110779 "2023-07-07T20:58:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandabrand](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pandabrand/32/48656_2.png) [@pandabrand](https://community.auth0.com/u/pandabrand)\
**Post date:** [July 7, 2023, 8:58pm UTC](https://community.auth0.com/t/isauthenticated-is-null/110779/1 "2023-07-07T20:58:33Z")

</div>

I have seen this issue in variation. But nothing that I can see to apply to why my code isn’t working. I setup an Provider like this

```auto
xport default function App() {
  return (
    <Auth0Provider
      domain=' *******.us.auth0.com'
      clientId=' *******'
      authorizationParams={{
        redirect_uri: `${window.location.origin}/admin/dashboard`
      }}
    >
      <BrowserRouter>
        <Routes>
          <Route element={<Layout/>}>
            <Route path='/' index={true} element={<UploadForm/>} />
            <Route path='/login' element={<Login/>} />
            <Route path='/admin' element={<ProtectedRoute/>}>
              <Route path='/admin/dashboard' element={<AdminDashboard/>} />
            </Route>
          </Route>
        </Routes>
      </BrowserRouter>
    </Auth0Provider>
  );
}

```

and I have my protected route looking at isAuthenticated

```auto
const ProtectedRoute = () => {
    const { isAuthenticated } = useAuth0()
    return isAuthenticated ? <Outlet /> : <Navigate to='/login' />
}

```

I am trying to exclusively use google as a login. I have created credentials in Google for this app. It seems to successfully login but isAuthenticated is always null. I don’t see any type of return in the network tab in devtools(Chrome&Firefox). What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 11, 2023, 9:37am UTC](https://community.auth0.com/t/isauthenticated-is-null/110779/2 "2023-07-11T09:37:38Z")

</div>

Hey there!

Can you share what SDK / quickstart / docs of ours have you been using in your implementation?

---

<div class="post-metadata">

**Author:** ![pandabrand](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pandabrand/32/48656_2.png) [@pandabrand](https://community.auth0.com/u/pandabrand)\
**Post date:** [July 11, 2023, 4:17pm UTC](https://community.auth0.com/t/isauthenticated-is-null/110779/3 "2023-07-11T16:17:05Z")

</div>

Sure thing,  
`@auth0/auth0-react:2.1.1` and

> **[Auth0 React SDK Quickstarts: Add Login to your React App](https://auth0.com/docs/quickstart/spa/react/interactive)**
>
> Auth0 allows you to add authentication to your React application quickly and to gain access to user profile information. This guide demonstrates how to integrate Auth0 with any new or existing React application using the Auth0 React SDK.

has been what I’ve referenced mostly. Along with some issues posts in GitHub.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 12, 2023, 11:12am UTC](https://community.auth0.com/t/isauthenticated-is-null/110779/4 "2023-07-12T11:12:37Z")

</div>

Gotchya! Then I think the most effective way of handling that would be if you raise it in a form of GitHub issue here:

> **[Issues · auth0-samples/auth0-react-samples](https://github.com/auth0-samples/auth0-react-samples/issues)**
>
> Auth0 Integration Samples for React Applications. Contribute to auth0-samples/auth0-react-samples development by creating an account on GitHub.

so we can work on that directly with the repo maintainers. Once you have a link to it you can share it here so we can ping them. Thank you!

---

<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 7, 2023, 2:25pm UTC](https://community.auth0.com/t/isauthenticated-is-null/110779/5 "2023-08-07T14:25:16Z")

</div>

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