Token Hook when refreshing tokens

We use the token hook to add calculated claims to access tokens. If the claims change we would like to update the token the next time it is refreshed, but the hook does not seem to be called when a refresh token is used. Is this expected? Is there any way to have the hook called on refresh?

A Token Inline Hook can definitely be called during a token refresh.

Are you not seeing system logs showing that there was a hook execution when using the refresh token to get new tokens?

What does the Access Rule on which the hook has been enabled look like? Are you sure that the right Access Policy and Rule are getting triggered in that request?

Thank you for responding, given this information it sounds like something we can debug on our end, will look into it further

1 Like