epilande/gatsby-theme-auth0

Pass-through to Auth0

Opened this issue · 2 comments

dandv commented

Maybe this is obvious, but I haven't seen it in the docs or in the demos - how do you access the Auth0 object, to call methods like renewAuth?

auth0 is declared private.

In case this is a YX problem, what I'm trying to do is refresh the JWT if the server says it has expired.

Ideally we would want to add renewAuth as a new method to AuthService, though I also don't see any issues exposing auth0.

Feel free to submit PRs 🙂

dandv commented

In the meantime I've been using checkSession() to renew expired JTWs, and that works. What's the difference between that and renewAuth? Would renewAuth solve the forced logout after 3 days of inactivity?