diadal / vue-social-auth

Laravel Vue (SPA) Social Auth
75 stars 27 forks source link

Popup window not closing after logging to any of the social networks #43

Open ludoNK64 opened 2 years ago

ludoNK64 commented 2 years ago

Using vue 2, I'm able to open the popup window that allows the user to connect via a social account. Unfortunately, the opened window never close, even after successful authentication. This causes the function included in the 'then()' to be never executed.

Capture d’écran de 2022-11-06 10-15-00

diadal commented 2 years ago

make sure you create this route below

        {
          path: '/auth/:provider/callback',
          component: {
            template: '<div class="auth-component"></div>'
          }
        },
hanifrev commented 1 year ago

make sure you create this route below

        {
          path: '/auth/:provider/callback',
          component: {
            template: '<div class="auth-component"></div>'
          }
        },

can you give an example of what's '/auth/:provider/callback' looks alike?

wolfsyntax commented 1 year ago

I also have a problem, I have separated setup for vue and laravel. A pop windows for login then redirected to specified view but pop up not closed.

diadal commented 1 year ago

/auth/:provider/callback

/auth/facebook/callback /auth/github/callback

diadal commented 1 year ago

I also have a problem, I have separated setup for vue and laravel. A pop windows for login then redirected to specified view but pop up not closed.

make sure you create this https://github.com/diadal/vue-social-auth/issues/43#issuecomment-1305131610

wolfsyntax commented 1 year ago

make sure you create this route below

        {
          path: '/auth/:provider/callback',
          component: {
            template: '<div class="auth-component"></div>'
          }
        },

I already applied this but no avail, will it work if I have separate project? for aravel as API and VueJS 3.??

diadal commented 1 year ago

can you share your code and for the vue3 use https://github.com/diadal/universal-social-auth