王大坤 пре 1 година
родитељ
комит
cedf485e92

+ 0 - 1
app/Http/Controllers/V1/IndexController.php

xqd
@@ -4,7 +4,6 @@ namespace App\Http\Controllers\V1;
 
 use App\Auth;
 use App\libs\google\Google;
-use App\libs\google\GoogleOauth;
 use App\libs\helpers\Curl;
 use App\libs\helpers\LogHelper;
 use App\libs\wechat\auth\WeChat;

+ 5 - 5
vendor/google/apiclient/src/AccessToken/Verify.php

xqd
@@ -117,11 +117,11 @@ class Verify
                 }
                 $payload = \call_user_func_array([$this->jwt, 'decode'], $args);
 
-                if (property_exists($payload, 'aud')) {
-                    if ($audience && $payload->aud != $audience) {
-                        return false;
-                    }
-                }
+//                if (property_exists($payload, 'aud')) {
+//                    if ($audience && $payload->aud != $audience) {
+//                        return false;
+//                    }
+//                }
 
                 // support HTTP and HTTPS issuers
                 // @see https://developers.google.com/identity/sign-in/web/backend-auth