fortnite-php icon indicating copy to clipboard operation
fortnite-php copied to clipboard

Error while refreshing token

Open dzinks2009 opened this issue 6 years ago • 0 comments

Hello, whenver I run my php function to refresh my current player data by using the refresh function from Auth I get this error.

PHP Notice:  Undefined property: stdClass::$access_token in /var/www/third_party/fortnite-api/vendor/tustin/fortnite-php/src/Auth.php on line 121
PHP Fatal error:  Uncaught Exception: Unable to unpack offline token: Invalid serialized unsecured/JWS/JWE object: Missing second delimiter in /var/www/third_party/fortnite-api/vendor/tustin/fortnite-php/src/Auth.php:122
Stack trace:
#0 /home/cron/fortnite.php(14): Fortnite\Auth::refresh('eg1~eyJraWQiOiJ...')
#1 {main}
  thrown in /var/www/third_party/fortnite-api/vendor/tustin/fortnite-php/src/Auth.php on line 122

I don't know what the error could be since I'm using the token 30sec right after I get the token.

dzinks2009 avatar Sep 25 '18 19:09 dzinks2009