I'm trying to work through how a user would detect that a requested failed initially due to an expired token and a successful refresh took place, providing a new access_token and refresh_token that the client may want to save. Any thoughts?
My current approach is to subclass session and override refresh_token to save off new tokens after calling super. I didn't know if there was a better pattern for some how passing this in the config; e.g. a proc or...