PHP - get updated credentials, while user is logged in

Hi @toomuchtimeondocs ,

AFAIK, the Actions are executed only when the user sign in and when a new refresh token is requested.

After reviewing the Auth0-php docs, the following got my attention -

  • renew() - it uses an existing refresh token to receive new id and access token

  • getCredentials() - returns an object representing the current session credentials (including id token, access token, access token expiration, refresh token and user data) without triggering an authorization flow.

The above would explain why invoking these methods doesn’t trigger the Actions to execute.


:video_camera: Want to join our next Community Interactive Q&A with our experts? This time we’re gonna talk about Auth0 Terraform Provider

1 Like