Reputation: 33
I've used Google auth using Firebase on Android app before. But this time I want my backend server to know if user is authenticated or not. User will authenticate using Firebase auth from Flutter app. Right now I've done simple email and password auth. Flutter will send username and password to the server and server is authenticating using Firebase. But I don't know how to do in case with Google or Facebook auth.
Upvotes: 0
Views: 733
Reputation: 691
Using Google or Facebook login the first thing is to login via plugging that does the authentification for you and will give you back some information about the login. Next step is to send the token to your server and the server will need to check with Google or Facebook if it's valid (With these verification we can verify that the user has done the sign in with the third party correctly).
I have used for Flutter the next dependency:
For NodeJs verification in the Back-end:
You need to follow the steps in the documentation to install the dependencies and you will need firebase.
Upvotes: 1