vue-authenticate icon indicating copy to clipboard operation
vue-authenticate copied to clipboard

Loggin error with google

Open tdchephuong opened this issue 7 years ago • 3 comments
trafficstars

Hi,

Thank you for your package !

I got an error when I try to login via google provider. Step: click button login > choose account > popup close > error on console

  • POST http://localhost:8080/auth/google 404 (Not Found)

  • vue-authenticate.es2015.js?5ab3:459 Possible Unhandled Promise Rejection: Error: Request failed with status code 404 at createError (createError.js?16d0:16) at settle (settle.js?db52:18) at XMLHttpRequest.handleLoad

iamge error

I don't know how to fix it. Do you have any suggestion ?

tdchephuong avatar Dec 28 '17 09:12 tdchephuong

It looks like you don't have a server endpoint for [POST] /auth/google

kieraneglin avatar Jan 05 '18 17:01 kieraneglin

If you are using responseType = "code", then you'll have to implement route on your server to exchange code for the access token.

dgrubelic avatar Jan 17 '18 22:01 dgrubelic

I'm getting same error because I don't have any server to exchange code for the access token. It is possible to set google provider to not using server endpoint and why?

rpliva avatar Jun 18 '18 14:06 rpliva