diff --git a/composer.json b/composer.json index 537ad60fb..cea6cdc50 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "guzzlehttp/guzzle": "^7.0", "intervention/image": "^2.0", "laravel/framework": "^10.0", - "laravel/horizon": "^5.0", + "laravel/horizon": "^5.24.4", "laravel/socialite": "^5.0", "laravel/ui": "^4.0", "lasserafn/php-initial-avatar-generator": "^4.2", diff --git a/src/Http/Controllers/Auth/SsoController.php b/src/Http/Controllers/Auth/SsoController.php index 398ac6884..4a4a68b66 100644 --- a/src/Http/Controllers/Auth/SsoController.php +++ b/src/Http/Controllers/Auth/SsoController.php @@ -71,7 +71,7 @@ public function redirectToProvider($profile = null) // in case the user is already authenticated - we're in a link flow if (auth()->check()) { // attempt to determine a used scopes and apply the same pattern for the newly linked character - $token = auth()->user()->refresh_tokens->first(); + $token = auth()->user()->main_character()->refresh_token; if (! is_null($token)) $used_scopes = $token->scopes;