* @copyright 2024 smiley * @license MIT */ declare(strict_types=1); namespace chillerlan\OAuth\Core; /** * Indicates whether the service can provide information about the currently authenticated user, * usually via a "/me", "/user" or "/tokeninfo" endpoint. */ interface UserInfo{ /** * Returns information about the currently authenticated user (usually a /me or /user endpoint). * * @see \chillerlan\OAuth\Core\OAuthProvider::sendMeRequest() * @see \chillerlan\OAuth\Core\OAuthProvider::getMeResponseData() * @see \chillerlan\OAuth\Core\OAuthProvider::handleMeResponseError() */ public function me():AuthenticatedUser; }