File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public function getAccessToken()
148148 {
149149 $ this ->checkTokens ();
150150
151- return $ this ->attributes ['access_token ' ] ? unserialize ($ this ->attributes ['access_token ' ]) : null ;
151+ return $ this ->attributes ['access_token ' ] ? unserialize ($ this ->attributes ['access_token ' ], [ ' allowed_classes ' => [AccessToken::class]] ) : null ;
152152 }
153153
154154 /**
@@ -190,7 +190,7 @@ protected function updateTokens($access_token, $refresh_token)
190190 */
191191 protected function checkTokens ()
192192 {
193- $ access_token = $ this ->access_token ? unserialize ($ this ->access_token ) : null ;
193+ $ access_token = $ this ->access_token ? unserialize ($ this ->access_token , [ ' allowed_classes ' => [AccessToken::class]] ) : null ;
194194
195195 if (!empty ($ access_token ) && $ access_token ->hasExpired ()) {
196196 // Tentativo di refresh del token di accesso
You can’t perform that action at this time.
0 commit comments