Hello,
We use Keycloak for authentication via our Google accounts in our Angular application (via keycloak-js).
No problem, it works perfectly.
We now want to use the Google token to call Google APIs directly.
So we call the broker endpoint to retrieve a token (store token on, api scopes, prompt consent, access_type offline).
This works very well… for 1 hour.
After that, the Google token expires, and Keycloak always returns the same one even we recalls broker token endpoint and we get 401 from Google.
The only way to get a new token is to destroy the Keycloak session (delete the cookies).
I don’t understand why.
Thanks.