From f68b26e1435ff671ae4188d997875a2faa4a965c Mon Sep 17 00:00:00 2001 From: Crypta Eve Date: Sat, 25 May 2024 20:07:31 +0930 Subject: [PATCH] fix: main_character relation ssocontroller --- src/Http/Controllers/Auth/SsoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/Auth/SsoController.php b/src/Http/Controllers/Auth/SsoController.php index 4a4a68b66..c35e91b89 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()->main_character()->refresh_token; + $token = auth()->user()->main_character->refresh_token; if (! is_null($token)) $used_scopes = $token->scopes;