Firebase

Google API OAuth 2.0 の認証でハマった

backham
<script type="text/javascript"> var client_id = "クライアントID"; var scopes = 'https://www.googleapis.com/auth/drive'; function checkAuth() { gapi.auth.authorize( { 'client_id':client_id, 'scope':scopes, 'immediate':true }, function(authResult){ console.log(arguments); }); } </script> <script type="text/javascript" src="https://apis.google.com/js/client.js?onload=checkAuth"</script> こんな感じで認証部分を記述しても何度やってもこ