If that failed, try to start a new session with the handle and password.
I was testing what would happen if a refresh token existed but was invalid and got this error:
Fatal error: Uncaught Error: Typed property cjrasmussen\BlueskyApi\BlueskyApi::$apiKey must not
be accessed before initialization in vendor/cjrasmussen/bluesky-api/src/BlueskyApi.php:89
The problem is this code in BlueskyApi::refreshSession():
I set up a process where my code would:
I was testing what would happen if a refresh token existed but was invalid and got this error:
The problem is this code in
BlueskyApi::refreshSession()
:Instead of unsetting
$apiKey
, I think you'll just want to set it back to its initial value ofnull
like this: