Skip to content

Commit

Permalink
fix: main_character relation ssocontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypta-Eve authored May 25, 2024
1 parent 7f489e7 commit f68b26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Auth/SsoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f68b26e

Please sign in to comment.