isAuthenticated method returns always false
See original GitHub issueDescription
I am trying to setup refresh token rotation in a react application. I manage to create the Auth0Client
, login and get to token with getTokenSilently
but isAuthenticated
, getUser
or getIdTokenClaims
are not working
Reproduction
I was making my tests with the react sample app. Everything works fine below the version 1.7.0. I start to have the issues described above after the refresh token rotation implementation.
Is it an issue with the auth0 configuration? I did make the change for the rotating refresh token behavior
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
req.isAuthenticated() is always false - Stack Overflow
My authentication function using passportjs will always return false even though the user exists already and it will always redirect to the ...
Read more >isAuthenticated() is always false - Auth0 Community
The login seems to work but the isAuthenticated returns always false. The app is going in a loop : isAuthenticated = false →...
Read more >What is the condition of true == Request.IsAuthenticated
IsAuthenticated is always false even after logging in after moving to the login page through the HttpContext.GetOwinContext().
Read more >[Solved]-req.isAuthenticated always returns false-node.js
Secondly, you are trying to call an isAuthenticated() method, which isn't declared or expressed, on the request object. function checkAuthenticated(req, res, ...
Read more >Why Request.IsAuthenticated return False always in MVC 4
using System; using · using System.Linq; ; namespace Portal.Controllers { public class UserController : Controller { ; public ActionResult Index() ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Setting token expiration to 60 seconds solved my problem also. Thanks to everyone for your help.
I have a similar issue but only during cypress tests (it always returns false in tests but works fine otherwise). Did anyone encounter this during cypress tests?