Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.

Error while refreshing token #48

Open
dzinks2009 opened this issue Sep 25, 2018 · 0 comments
Open

Error while refreshing token #48

dzinks2009 opened this issue Sep 25, 2018 · 0 comments

Comments

@dzinks2009
Copy link

dzinks2009 commented Sep 25, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant