Hi! I’m using auth0-js npm library for embedded auth in my SPA. In order to implement token refresh for SPAs I’ve followed guide:
Which helped me to implement the solution.
However, now I need to adjust Access Token expiration time (expire_in callback parameter) and change it from 7200 seconds to anything else, which I’m not able to do. I followed this article to set token lifetime:
I still get expire_in=7200 in response, no matter what I change, that is problem #1. Maybe this method is making a call to /co/authenticate? I need a more clear explanation of what happens there.
If I try to pass audience parameter, which I get from Auth0 Management panel, I get an error:
Service not found: https://my-audience-identifier
I would appreciate an explanation of how to set expire_in along with /co/authenticate endpoint (auth0.login() method).