File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public function setOnRefreshEnd(callable $callback): void
118118 * Set a callback that will react to a refresh token error.
119119 *
120120 * @param callable $callback
121- * A callback which accepts one argument, the BadResponseException , and
121+ * A callback which accepts one argument, the IdentityProviderException , and
122122 * returns an AccessToken or null.
123123 */
124124 public function setOnRefreshError (callable $ callback ): void
@@ -224,7 +224,7 @@ private function acquireAccessToken(): AccessToken
224224 return $ this ->provider ->getAccessToken (new RefreshToken (), [
225225 'refresh_token ' => $ this ->accessToken ->getRefreshToken (),
226226 ]);
227- } catch (BadResponseException $ e ) {
227+ } catch (IdentityProviderException $ e ) {
228228 if (isset ($ this ->onRefreshError )) {
229229 $ accessToken = call_user_func ($ this ->onRefreshError , $ e );
230230 if ($ accessToken ) {
You can’t perform that action at this time.
0 commit comments