Skip to content

Commit a4bf7c0

Browse files
committed
Fix type signature
Signed-off-by: Anuraag Agrawal <[email protected]>
1 parent cb03b29 commit a4bf7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/interceptors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ An authentication interceptor checking bearer tokens and storing them to a conte
212212
def __init__(self, valid_tokens: list[str]):
213213
self._valid_tokens = valid_tokens
214214

215-
def on_start(self, ctx: RequestContext):
215+
def on_start(self, ctx: RequestContext) -> Token["auth_token"]:
216216
authorization = ctx.request_headers().get("authorization")
217217
if not authorization or not authorization.startswith("Bearer "):
218218
raise ConnectError(Code.UNAUTHENTICATED)

0 commit comments

Comments
 (0)