absinthe-graphql / absinthe-socket

Core JavaScript support for Absinthe WS-based operations
MIT License
150 stars 75 forks source link

Authentication/authorization examples #18

Open bruce opened 6 years ago

bruce commented 6 years ago

We see questions about how, eg, tokens can be passed by clients to Absinthe. It would be useful to have code examples showing how this can be done for the various socket incarnations, across HTTP & WS.

ssomnoremac commented 6 years ago

@bruce I can show how I handled it in Relay Modern. I'm not sure the client example makes sense outside the context of the elixir code. But I'll see what I can do. Where should I put it?

sheharyarn commented 6 years ago

@ssomnoremac If there are just a couple of files, can you just post them here in the thread? Otherwise a link to a separate repo would be great. Thank you!