vue-authenticate
vue-authenticate copied to clipboard
Loggin error with google
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
I don't know how to fix it. Do you have any suggestion ?
It looks like you don't have a server endpoint for [POST] /auth/google
If you are using responseType = "code", then you'll have to implement route on your server to exchange code for the access token.
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?