getBearerToken(); $oauth->verifyAccessToken($token); } catch (OAuth2ServerException $oauthError) { $oauthError->sendHttpResponse(); } // With a particular scope, you'd do: // $oauth->verifyAccessToken("scope_name"); ?>
This is a secret.