Auth0 Home Blog Docs

Token expiry stuck at 7200 seconds

id_token
access_token
expire

#1

Hello,

I have set id token expiry (JWT expiration) to 36000 seconds and access token expiry on API for browser flow to 1800 seconds. Yet when i get these tokens on javascript side, both are set to expire in about 2 hrs.

What am I doing wrong?

Thanks,
Gursharan


#2

Can you provide a bit more information on your authentication request? Maybe share a snippet of code?


#3

This happens also to me. I am using Auth0Lock V11.3.1.

      auth: {
        responseType: 'token id_token',
        params: {
          connectionScopes: {
            connectionName: [ 'openid', 'user_metadata', 'app_metadata', 'picture' ]
          }
        }
      },

#4

Hi,

I have the same issue since we upgrade to version 9 of Auth0.js.
The client has been configured to use an expiration duration of one day, the token we get back only lasts for 2 hours.

In de callback url i can find following parameter: &expires_in=7200


#5

I am having this exact issue, but I am using Lock, and I’m migrating from Lock 10 to Lock 11 and from id tokens to access tokens. No matter what parameter I change, I can’t get the expiry time to change


#6

Hi Ricardo, Apologies for my late reply. Umm… would you like me to share my code with keys etc? Is there a secure place to share please?

Regards,
Gursharan