# Okta-token-storage

**URL:** <https://devforum.okta.com/t/okta-token-storage/25679>\
**Category:** OAuth/OIDC\
**Created:** [October 31, 2023, 2:37am UTC](https://devforum.okta.com/t/okta-token-storage/25679 "2023-10-31T02:37:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanitharc12](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@vanitharc12](https://devforum.okta.com/u/vanitharc12)\
**Post date:** [October 31, 2023, 2:37am UTC](https://devforum.okta.com/t/okta-token-storage/25679/1 "2023-10-31T02:37:36Z")

</div>

This is my protected route

import React from “react”;  
import { Outlet } from “react-router-dom”;  
import { useOktaAuth } from “@okta/okta-react”;

const ProtectedRoute = async ({ element }) =\> {  
const { authState, oktaAuth } = useOktaAuth();

if (!authState || !authState.isAuthenticated) {  
oktaAuth.signInWithRedirect({ originalUri: “/\*\*\*/home” });  
} else {  
return ;  
}  
};

export default ProtectedRoute;

When the user clicks [http://localhost:3000/\*\*\*/home](http://localhost:3000/***/home), it redirects the user to org sign in page and once the user signs in , it redirects to application home page. Except okta-token-storage , am able to see remaining details in my browser?

Why am not getting okta-token-storage empty object? What should need to get the okta-toke-storage? And also there is no Okta logs, and my application has never hit /token endpoint ? could anyone knows how to solve this issue?

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/5/52b0cf9cf0390cd617261dd3afd72f9193052d5f.png)  
g

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [November 3, 2023, 12:06am UTC](https://devforum.okta.com/t/okta-token-storage/25679/2 "2023-11-03T00:06:26Z")

</div>

I’m not sure I understand the issue you are having. Are you seeing your application make any requests to log the user into Okta (in particular, to the /authorize or /token endpoints)? Are these requests succeeding or failing? If they are failing, what errors are you seeing (in either the Network tab or the Console)?
