OAuth2\OAuth2::createAuthCode PHP Метод

createAuthCode() приватный Метод

This belongs in a separate factory, but to keep it simple, I'm just keeping it here.
private createAuthCode ( OAuth2\Model\IOAuth2Client $client, mixed $data, string $redirectUri, string $scope = null ) : string
$client OAuth2\Model\IOAuth2Client Client related to the access token.
$data mixed
$redirectUri string An absolute URI to which the authorization server will redirect the user-agent to when the end-user authorization step is completed.
$scope string (optional) Scopes to be stored in space-separated string.
Результат string
    private function createAuthCode(IOAuth2Client $client, $data, $redirectUri, $scope = null)
    {
        $code = $this->genAuthCode();
        $this->storage->createAuthCode($code, $client, $data, $redirectUri, time() + $this->getVariable(self::CONFIG_AUTH_LIFETIME), $scope);
        return $code;
    }