It appears that currently set_user_authentication will just fail if passed tokens that have expired.
Given that it is passed the refresh token as well, it would be good if it attempted a refresh of the token once if the initial authentication fails (and signals the user_auth_refresh_callback if one is set)
It appears that currently
set_user_authentication
will just fail if passed tokens that have expired.Given that it is passed the refresh token as well, it would be good if it attempted a refresh of the token once if the initial authentication fails (and signals the
user_auth_refresh_callback
if one is set)