i was wondering how to specify the redirect url for a google sign-in button, here is the button:
<div class="g-signin2" data-onsuccess="onSignIn"
data-scope="https://www.googleapis.com/auth/plus.login
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile"
data-requestvisibleactions="http://schemas.google.com/AddActivity"
data-accesstype="offline"
data-cookiepolicy="single_host_origin"></div>
Add a new URL redirectClick the URL Redirects tab. In the upper right, click Add URL redirect. In the right panel, select the Standard or Flexible redirect type. A standard redirect is used to redirect one URL to another.
Param name is data-redirecturi. Example:
<div class="g-signin2"
data-onsuccess="onSignIn"
data-scope="https://www.googleapis.com/auth/plus.login"
data-accesstype="offline"
data-redirecturi="https://www.example.com/redirect_uri"></div>
Note that you don't have to set data-cookiepolicy, it's single_host_origin by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With