Repository navigation
Commit 4fbc38f
committed
Enhance GraphQLClient token handling to support both API keys and JWTs
- Updated the token handling logic in `GraphQLClient` to differentiate between long-lived API keys (prefixed with `rfs`) and short-lived JWTs.
- API keys are sent in the `X-API-Key` header, while JWTs are sent in the `Authorization` header as a Bearer token.
- This change ensures proper authentication for various client use cases, maintaining compatibility with existing conventions.1 parent 2710a53 commit 4fbc38f
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
| |||
0 commit comments