Login into google javascript api
This is m code i can login with google but i want redirect page with display email
<script>
$(document).ready(function () {
$('#btnGoogleLogin').click(function () {
var OAUTHURL = 'https://accounts.google.com/o/oauth2/auth?';
var VALIDURL = 'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=';
var SCOPE = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
var CLIENTID = '556152330944-irc73ah0r7gbar8n1k27m04ag1bfmbft.apps.googleusercontent.com';
var REDIRECT = 'https://localhost:44328/Home/Index';
var LOGOUT = 'http://localhost:44328/Home/Login';
var TYPE = 'token';
window.location.href = OAUTHURL + 'scope=' + SCOPE + '&client_id=' + CLIENTID + '&redirect_uri=' + REDIRECT + '&response_type=' + TYPE;
});
});
</script>