Add a public refresh_access_token function.