guruahn / vue-google-oauth2

🔌 Handling Google sign-in and sign-out for Vue.js applications
MIT License
183 stars 55 forks source link

Adding `ux_mode: 'redirect'` does not work #69

Closed adbeel92 closed 1 year ago

adbeel92 commented 3 years ago

The login dialog opens a popup and if you add ux_mode: 'redirect' should not open it, but it's opening it

smonff commented 3 years ago

I was dealing with the same issue and found your ticket. What did you try? Those are the options I passed to vue-google-oauth2:

{
  clientId: 'secret',
  prompt: "select_account",
  redirect_uri: encodeURI('http://localhost:8080/'),
  scope: "profile email",
  ux_mode: "redirect",
}

See that you'll need a redirect_uri parameter in addition to ux_mode. Also, totally log-out from Google and hard refresh (even restart?) the browser and flush cookies for Google Identity might help.

With this configuration, the popup is not used.

guruahn commented 1 year ago

This plugin does not support the new Google authentication system(GIS). You need to migrate by referring to this document. I'm sorry to tell you this news.