Skip to content

Commit

Permalink
Don't display login button if API key is still active
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvijge committed Nov 20, 2024
1 parent 40ea932 commit fdd7ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Settings.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub handler {
$prefs->remove('apiKey');
}

if (!Plugins::SqueezeCloud::Oauth2::isRefreshTokenAvailable()) {
if (!Plugins::SqueezeCloud::Oauth2::isLoggedIn()) {
$log->debug('Generating code and code challange');
my $codeChallenge = Plugins::SqueezeCloud::Oauth2::getCodeChallenge;
$params->{codeChallenge} = $codeChallenge;
Expand Down

0 comments on commit fdd7ae0

Please sign in to comment.