friendship ended with social-app. php is my new best friend
1<?php 2/** 3 * Interface UserInfo 4 * 5 * @created 04.04.2024 6 * @author smiley <smiley@chillerlan.net> 7 * @copyright 2024 smiley 8 * @license MIT 9 */ 10declare(strict_types=1); 11 12namespace chillerlan\OAuth\Core; 13 14/** 15 * Indicates whether the service can provide information about the currently authenticated user, 16 * usually via a "/me", "/user" or "/tokeninfo" endpoint. 17 */ 18interface UserInfo{ 19 20 /** 21 * Returns information about the currently authenticated user (usually a /me or /user endpoint). 22 * 23 * @see \chillerlan\OAuth\Core\OAuthProvider::sendMeRequest() 24 * @see \chillerlan\OAuth\Core\OAuthProvider::getMeResponseData() 25 * @see \chillerlan\OAuth\Core\OAuthProvider::handleMeResponseError() 26 */ 27 public function me():AuthenticatedUser; 28 29}