I have graphql api server and call the api from my flutter app.
Now I need to implement login authentication. So I decided to use firebase authentication.
I need email, google and facebook sign in.
I am a bit puzzle how to authenticate the user.
From my flutter app, authenticate directly with firebase and get the token. If got the token call create user api and create the user. Of course, I will pass the token and verify the token against firebase.
Create SignIn, SignInWithGoogle and SignInWithFacebook end point in my Apollo server and call from my flutter.
Which way is the common practice?