We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb03b29 commit a4bf7c0Copy full SHA for a4bf7c0
docs/interceptors.md
@@ -212,7 +212,7 @@ An authentication interceptor checking bearer tokens and storing them to a conte
212
def __init__(self, valid_tokens: list[str]):
213
self._valid_tokens = valid_tokens
214
215
- def on_start(self, ctx: RequestContext):
+ def on_start(self, ctx: RequestContext) -> Token["auth_token"]:
216
authorization = ctx.request_headers().get("authorization")
217
if not authorization or not authorization.startswith("Bearer "):
218
raise ConnectError(Code.UNAUTHENTICATED)
0 commit comments