phanan / vue-google-signin-button Goto Github PK
View Code? Open in Web Editor NEW🔐 A simple Vue plugin to include a Google sign-in button into your web app.
🔐 A simple Vue plugin to include a Google sign-in button into your web app.
Hi, thanks for the nice module,
do you know if it's possible to obtain a token for more than 1 hour? the 'id_token' always expires... and there's no "refresh_token" in the response I get from google :( .
Hey guys, I'm trying to use your component to get the code that I need to send to Google to get a Refresh Token for the user. Is it possible with this component?
Thanks
Gostery ( https://www.ghostery.com/ ) is the world's leading anti-tracking tool (at least, according to this). It has browser extensions for all the major browsers plus many less major ones.
Unless Gostery is uninstalled or disabled, vue-google-signin-button
will never fire its success
or error
events, making it completely ineffective. When you click on the button it will show the google login page, then it will do nothing, leaving you logged out.
Gostery has an option to "Trust this site" but that doesn't help at all.
怎麼註銷登錄切換賬號?
Having trouble to add https://apis.google.com/js/api:client.js in a script tag, I have the following directory structure:
/index.html
src/
/components/signupGoogle.vue (google sign in component)
/views/signup.vue (signup view where signupGoogle added)
App.vue
main.js
Can you guide where and how to add the script tag?
HI All, Is Sign Out option available for this plugin or do I need to do it by maintaining the user session?
how to call this function inside the method?
GoogleAuth.signOut() ?
Thanks.
Is there any way by which we can disable the sign in button ?
Hi,
This component works perfect as expected, but after an hour or so after login, I think that the token expires, and I can't use it anymore! Any ideas on how to fix this problem?
I get this exception saying popup_closed_by_user
Error message is { error: "popup_closed_by_user" } but I didn't close the popup, it will close itself automatically after choosing an account to sign in.
How to fix this one?
Can your component check to see if the user is already signed in before presenting the login button?
For some reason, session storage for logged in users has been broken when I use this.
When you initialize the GoogleAuth object, you configure the object with your OAuth 2.0 client ID and any additional options you want to specify. Then, if the user has already signed in, the GoogleAuth object restores the user's sign-in state from the previous session.
Whenever I refresh the page it thinks I'm logged out.
This is more of a feature request.
According to google you can no longer randomly brand your google sign in button. https://developers.google.com/identity/branding-guidelines#top_of_page
This is a request to have the google sign in button component have this as a default.
Thank you for the great package.
may I know what is the originating and callback URL?
I have created a route which shows http://localhost:8081/#/login but google console refused to accept this URL
thanks
I found your library on NPM and had to search to find your Github repo, so much effort ;-)
You could add it to package.json
... Here is a link to NPM docs, so that you don't even have to search
https://docs.npmjs.com/files/package.json#repository
Great job with the plugin btw !
I tried to use this on a Quasar app and built it on Android.When tapping/clicking the sign in button on a mobile device, the sign in window is not showing up. On a regular web app the window is showing normally. It would be cool if it can be made to work on Android/iOS via Cordova as this is the simplest implementation so far of Google sign In. Good job so far, thanks!
I keep on getting the error [g-signin-button] "https://apis.google.com/js/api:client.js" needs to be included as a <script>, although I added this <script type="javascript" src="https://apis.google.com/js/api:client.js"></script> before the script of the component.
How to request additional permissions
I'm wondering if this plugin is intended to use with register/login to backend server? If so what is the secure way to do so?
Hi, thanks for your awesome work.
I'm developing an intranet website using Nuxt.js.
I've configured the vue-google-signin-button component in a Nuxt's basic way, but it shows Cannot read property 'props' of undefined
error and doesn't work.
Where am I wrong?
Are there any extra steps needed when using with Nuxt.js?
https://codesandbox.io/s/vue-google-signin-button-cannot-read-property-props-of-undefined-l4lxb
The above code will result in:
The error comes right from the google script
I have been using this package for some time it was working fine then suddenly it stoppen working. It is not even giving any error logs in console. It is nither calling the @success or @error functions.
If it was giving me an error message i would at least have a something to throw at google to see if anything comes up. Can anyone help me
I am using
"vue-google-signin-button": "^1.0.2",
and i have also included <script type="text/javascript" src="https://apis.google.com/js/api:client.js"></script> this link in my index file
Hello, how can I pass additional parameters along with the default 'googleUser'?
I call a function in the store and I'm trying to pass additional info, I tried doing this but it doesn't work:
async onGoogleSignInSuccess({ rootState, commit, dispatch }, {googleUser, myParam})
我在使用时,遇到这个问题,有人能帮助我吗?
The docs say that this needs: https://apis.google.com/js/api:client.js
Google won't let you create new client ID's that use this - only old ones.
We should move to https://accounts.google.com/gsi/client
I get this exception sometime saying popup_blocked_by_browser
Error message is { error: "popup_blocked_by_browser" }.
How to fix this one?
I've got a mail from Google Developers like below:
Hello Google Developer,
You are receiving this message as a reminder that one or more of your web applications uses the legacy Google Sign-In web solution. Our announced plan stated that authentication support for the Google Sign-In JavaScript platform library will no longer be supported after March 31, 2023.
After March 31, 2023, migration to the new Google Identity Services will be necessary to sign in customers using their Google Account to your platform. The SDK will use the new Sign In With Google client library.
The mail contains App name and Client ID for my web app which uses vue-google-signin-button
component.
Do you have any plan to migrate to the new library?
To make this accessible the following needs to be added to the vue component:
role="button"
tabindex="0"
id="gmail-signin"
Then the following script is needed on the page to allow the enter key to work:
$('#gmail-signin').keypress(function(event){
var keycode = (event.keyCode ? event.keyCode : event.which);
if(keycode == '13'){
$('#gmail-signin').click();
}
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.