1

Once I have I gRPC client (stub) created, say

client = new routeguide.RouteGuide(
    localhost:50051,
    grpc.credentials.createInsecure() );

How do I pass metadata when calling a method? I know I can use (and I do) client.methodName(params); to call a method, but can I use something like client.methodName(params, metadata); ???

I want to pass a JWT token to the server to validate the user.

Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.