Get access token for authentication
All checks were successful
release / release-plugins (push) Successful in 24s

This commit is contained in:
mschuepbach
2024-03-16 13:02:06 +01:00
parent 7aacce24e6
commit 32463e762e
3 changed files with 59 additions and 2 deletions

View File

@@ -29,9 +29,11 @@ sub handler {
}
Plugins::YouTubeMusic::OAuth2::getDeviceCode if $params->{get_device_code};
Plugins::YouTubeMusic::OAuth2::getToken if $params->{get_token};
$params->{user_code} = $cache->get('yt:user_code');
$params->{verification_url} = $cache->get('yt:verification_url');
$params->{access_token} = $cache->get('yt:access_token');
return $class->SUPER::handler($client, $params);
}