Hi
I am having a problem with my access token expiry interval.
When I get an access token from Auth0, expiry time is set as the same time of the query. i.e. expiry duration settings configured in the API ‘Token Expiration (Seconds)’, ‘Token Expiration For Browser Flows (Seconds)’ are not getting applied in the token.
I tried to verify this with a sample SPA application from https://auth0.com/docs/quickstart/spa/react/02-calling-an-api?download=true
I see the same problem here. However the API token validation returns success, I guess this is because of the clock skew.
Auth0 provider has all the required options for getting the token.
<Auth0Provider
domain={config.domain}
client_id={config.clientId}
audience={config.audience}
redirect_uri={window.location.origin},
responseType="token id_token"
scope="openid name profile"
onRedirectCallback={onRedirectCallback}
>
Default ’ [Username-Password-Authentication]’ connection is used. All custom rules are disabled.
I am using getTokenSilently() method to get the access token upon successful sign-in before calling the API.
I also referred the thread Access_token too short ~ jwt malformed - #4 by priya.sharma.9362 and made sure my configuration are correct. I am not getting an Opaque token, it is a proper JWT token with all the required claims in it.
Appreciate any inputs on this. Thanks in advance.
Regards
Selva