question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

isAuthenticated method returns always false

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
szilagyikingacommented, Jun 2, 2020

Setting token expiration to 60 seconds solved my problem also. Thanks to everyone for your help.

1reaction
tudorgergelycommented, Jun 1, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found