You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs can be found at [https://hexdocs.pm/common_graphql_client](https://hexdocs.pm/common_graphql_client).
@@ -17,7 +35,7 @@ Add `common_graphql_client` to your list of dependencies in `mix.exs`:
17
35
```elixir
18
36
defdepsdo
19
37
[
20
-
{:common_graphql_client, "~> 0.1.0"},
38
+
{:common_graphql_client, "~> 0.6.0"},
21
39
{:httpoison, "~> 1.1"}, # If using HTTP queries
22
40
{:absinthe_websocket, "~> 0.2.0"}, # If using WebSocket subscriptions (or WebSocket queries)
23
41
]
@@ -261,7 +279,7 @@ end
261
279
262
280
## Security
263
281
264
-
### Client
282
+
### Client Security
265
283
266
284
The HTTP Client can send `Bearer` tokens, whereas the WebSocket can send a token as a query param. Since these credentials should not be in source control, this library provides a way to set them at runtime. First, update the Mix config:
267
285
@@ -379,7 +397,9 @@ defmodule MyAppWeb.UserSocket do
0 commit comments