Nuevos cambios hechos de diseño

This commit is contained in:
ellecio2
2023-08-23 17:33:44 -04:00
parent 7a806f84ff
commit d2e9ba53ab
3485 changed files with 691106 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?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'];
}
}