|
@@ -0,0 +1,32 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="">
|
|
|
+ <head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
|
+ <meta name="google-signin-client_id" content="398214166622-jkme0i3k4tbsgqh19aejaqatrark5l94.apps.googleusercontent.com">
|
|
|
+ <title>Clear google Login</title>
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <h1>Clear Google Token</h1>
|
|
|
+ <button onclick="Logout()">Logout</button>
|
|
|
+ <script>
|
|
|
+ function Logout() {
|
|
|
+ console.log('onSuccess');
|
|
|
+ var auth2 = gapi.auth2.getAuthInstance();
|
|
|
+ auth2.signOut().then(function () {
|
|
|
+ window.location.href = '/'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function onLoad() {
|
|
|
+ gapi.load('auth2', function() {
|
|
|
+ gapi.auth2.init();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+
|
|
|
+ <script src="https://apis.google.com/js/platform.js?onload=onLoad" async defer></script>
|
|
|
+
|
|
|
+ </body>
|
|
|
+</html>
|