Looking at this https://grpc.io/docs/languages/dart/basics/#creating-a-stub which says:
> You can use CallOptions to set auth credentials (for example, GCE credentials or JWT credentials) when a service requires them. Have you looked into using CallOptions? On Tue, Mar 9, 2021 at 3:19 PM Matt Stagitis <[email protected]> wrote: > Hi all, > > I am working on a Flutter application that allows users to sign in via > Google and Facebook using Firebase. After signing in, a user get's an auth > token from Firebase. I'd like to send this auth token alongside each gRPC > call so the server can authenticate the signed in user. > > *Is there a recommended approach for doing so from a Dart gRPC client (the > Flutter app)?* I've dug around the docs and haven't found much, other > than manually writing the auth token to the request's metadata (not sure if > this is the right way to go). > > Thanks ahead of time! > > - Matt > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/f2919f4c-2cba-4021-8eab-294f7bfd5bc8n%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/f2919f4c-2cba-4021-8eab-294f7bfd5bc8n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CA%2BPad6hLBPoK_0uhxMwGpc1Yf75VuGzx_Gk0Asif3TvWkyO%2Bhg%40mail.gmail.com.
