@ -17,7 +17,7 @@ use Zend\Diactoros\Response\EmptyResponse;
class Auth extends \JKingWeb\Arsse\REST\AbstractHandler {
/** The scopes which we grant to Microsub clients. Mute and block are not included because they have no meaning in an RSS/Atom context; this may signal to clients to suppress muting and blocking in their UI */
const SCOPES = "read follow channels";
const SCOPES = ["read","follow","channels"];
/** The list of the logical functions of this API, with their implementations */
const FUNCTIONS = [
'discovery' => ['GET' => "opDiscovery"],
@ -252,7 +252,7 @@ class Auth extends \JKingWeb\Arsse\REST\AbstractHandler {
'me' => $this->buildIdentifier($req, $user),
'token_type' => "Bearer",
'access_token' => $token,
'scope' => self::SCOPES,
'scope' => implode(" ", self::SCOPES),
]);
}
@ -295,13 +295,20 @@ class Auth extends \JKingWeb\Arsse\REST\AbstractHandler {