GithubHelp home page GithubHelp logo

vue-google-signin-button's People

Contributors

billyyyyy3320 avatar dependabot[bot] avatar noob9527 avatar phanan avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-google-signin-button's Issues

Token expiration 1 hour

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 :( .

AuthCode to exchange for Refresh Token

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

Doesn't work on browsers with Gostery extension

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.

HELP!

how to call this function inside the method?
GoogleAuth.signOut() ?

Thanks.

error popup_closed_by_user

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?

Session storage broken

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.

https://developers.google.com/api-client-library/javascript/reference/referencedocs#googleauthcurrentuserget

Whenever I refresh the page it thinks I'm logged out.

Not working for Quasar/Cordova Android

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!

How to do register/login?

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?

Cannot read property 'props' of undefined

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?

To reproduce

https://codesandbox.io/s/vue-google-signin-button-cannot-read-property-props-of-undefined-l4lxb

The above code will result in:

image


Environment

  • nuxt: v2.9.2
  • vue-google-signin-button: v1.0.4

the button is not calling any callback / event

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

Pass additional params to onGoogleSignInSuccess

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})

popup_blocked_by_browser error

I get this exception sometime saying popup_blocked_by_browser
Error message is { error: "popup_blocked_by_browser" }.
How to fix this one?

Need migration to the new Google Identity Services library

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?

Accessibility

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();
}
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.