You have two ways to remove immediate sign-in to Google Plus.
1 is not a good approach: use data-confirmprompt = "force" in your button. I wrote an example below:
<span id="signinButton" > <span class="g-signin g-link" data-callback="signinCallback" data-clientid="*****.apps.googleusercontent.com" data-cookiepolicy="single_host_origin" data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/plus.profile.emails.read" data-approvalprompt="force" style= "cursor:pointer;"> Login With Google </span> </span>
This is not a good approach, because if you add this, Google will ask the user to provide additional permission for offline access. Thus, this may prevent the user from registering at all due to this permission.
2- best approach: just exit Google after receiving a response in your signincallback function. just add:
gapi.auth.signOut();
You should write this line after receiving the answer. It is better to save it as the last line inside the request.execute (function (resp) function.
By adding this code, Google will not give out a login if someone does not press the login button. This approach is also recommended by Google.
source share