I’m using Auth0 for authentication and user management for an Action-on-Google app.
I’m having a problem with the authentication expires after 24 hours. On the Google Action side, the available settings are Grant Type, Client ID, Client Secret, Auth url, Token url and scopes, see attached image actionsongoogle-config.png.
On the Auth0 side I have set the Api 's Token Expiration (Seconds) to 94608000 (not an ideal solution) and I have enabled “Allow Offline Access”. The name of the Api is ‘GoogleAuth’ and the identifier is ‘aog’.
I have tried to to find the issue by using Google OAuth Playground
I enter data in step 1, . Not sure what to put in the ‘Authorize API’, but i’ve tried with both ‘GoogleAuth’ and ‘aog’.
After “Exchange authorization code” , I get an accesstoken which expires in 24h, see . I was expecting it to have much longer expiry time and there’s no refresh_token either.
Maybe he problem is related to jmangelos answer here , but I don’t understand how and where I can specify the ‘audience’ parameter as explained?
The software is already released, so it is a critical problem, clients must do the account linking every 24h. Any help is highly appreciated!
Thanks in advance