File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 66use Exception ;
77use GuzzleHttp \Client ;
88use InfyOmLabs \LaravelEnvato \Auth \EnvatoCredentials ;
9+ use InfyOmLabs \LaravelEnvato \Client \EnvatoClient ;
910use InfyOmLabs \LaravelEnvato \Events \EnvatoCredentialsRefreshed ;
1011use InfyOmLabs \LaravelEnvato \Utils \LaravelEnvatoUtils ;
1112
@@ -112,6 +113,11 @@ public function refreshToken()
112113 $ responseBody = json_decode ((string ) $ response ->getBody (), true );
113114 $ this ->authCredentials ->accessToken = $ responseBody ['access_token ' ];
114115 $ this ->authCredentials ->expiresIn = Carbon::now ()->addSeconds ($ responseBody ['expires_in ' ]);
116+
117+ /** @var EnvatoClient $envatoClient */
118+ $ envatoClient = app (EnvatoClient::class);
119+ $ envatoClient ->initClient ();
120+
115121 EnvatoCredentialsRefreshed::dispatch ($ this ->authCredentials );
116122
117123 return $ this ->authCredentials ;
You can’t perform that action at this time.
0 commit comments