public function getProvider(): AbstractProvider
    {
        $class = $this->providerClass();

        return new $class([
            'clientId'     => $this->clientId,
            'clientSecret' => $this->clientSecret,
            'redirectUri'  => $this->redirectUrl,
        ]);
    }
public function getProvider(): AbstractProvider
    {
        $class = $this->providerClass();

        return new $class([
            'clientId'     => $this->clientId,
            'clientSecret' => $this->clientSecret,
            'redirectUri'  => $this->redirectUrl,
        ]);
    }
public function getProvider ( ) : AbstractProvider { $ class = $ this -> providerClass ( ) ; return new $ class ( [ 'clientId' => $ this -> clientId , 'clientSecret' => $ this -> clientSecret , 'redirectUri' => $ this -> redirectUrl , ] ) ; }
Get a OAuthProvider.

@return AbstractProvider
Get a OAuthProvider .