I've been working on an application using react and relay, and now I'm stuck on implementing authentication.
I know that you can pass value to each graphql request through the context which is available in GraphQL resolves functions.
I'm more confused about what to pass for it and how.
Is it better to use JSON Web token, passport, something else? And how should I pass the identifier for the user?
Basically what I'm asking, What is best suitable for Relay: jwt, passport, something else? And how to hook it up with relay. Thanks!