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 6
6
use Exception ;
7
7
use GuzzleHttp \Client ;
8
8
use InfyOmLabs \LaravelEnvato \Auth \EnvatoCredentials ;
9
+ use InfyOmLabs \LaravelEnvato \Client \EnvatoClient ;
9
10
use InfyOmLabs \LaravelEnvato \Events \EnvatoCredentialsRefreshed ;
10
11
use InfyOmLabs \LaravelEnvato \Utils \LaravelEnvatoUtils ;
11
12
@@ -112,6 +113,11 @@ public function refreshToken()
112
113
$ responseBody = json_decode ((string ) $ response ->getBody (), true );
113
114
$ this ->authCredentials ->accessToken = $ responseBody ['access_token ' ];
114
115
$ this ->authCredentials ->expiresIn = Carbon::now ()->addSeconds ($ responseBody ['expires_in ' ]);
116
+
117
+ /** @var EnvatoClient $envatoClient */
118
+ $ envatoClient = app (EnvatoClient::class);
119
+ $ envatoClient ->initClient ();
120
+
115
121
EnvatoCredentialsRefreshed::dispatch ($ this ->authCredentials );
116
122
117
123
return $ this ->authCredentials ;
You can’t perform that action at this time.
0 commit comments