Commit 1ed3a2d
fix: switch auth from PrepareRequest to Authorized hook
PrepareRequest on the parent client doesn't propagate to sub-clients
(TranslateText, RephraseText, etc.), causing 401 errors. The Authorized
hook modifies the shared Authorizations list so all sub-clients correctly
send Authorization: DeepL-Auth-Key.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d6c0dbe commit 1ed3a2d
1 file changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
11 | 9 | | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | | - | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
16 | 26 | | |
17 | 27 | | |
18 | | - | |
19 | 28 | | |
0 commit comments