HOME


Mini Shell 1.0
Negocios La Pieza.DO | Registrate o Inicia Sesión

¡Página no encontrada!

La página que busca no se encuentra en nuestro servidor.

Volver al inicio
DIR: /var/www/devs.lapieza.net/app/Services/Revoke/
Upload File :
Current File : /var/www/devs.lapieza.net/app/Services/Revoke/GoogleRevoke.php
<?php



namespace App\Services\Revoke;



class GoogleRevoke implements ProviderRevoke

{



    public function apply()

    {

        $token = auth()->user()->access_token;

        $ch = curl_init("https://oauth2.googleapis.com/revoke?token={$token}");

        $header = array(

            'Content-Type:application/x-www-form-urlencoded'

        );

        curl_setopt($ch, CURLOPT_HTTPHEADER, $header);

        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");

        $resultdata = curl_exec($ch);

        $response = curl_getinfo($ch);

        curl_close($ch);

        return $response['http_code'];

    }

}