File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ An authentication interceptor checking bearer tokens and storing them to a conte
193193 if not authorization or not authorization.startswith("Bearer "):
194194 raise ConnectError(Code.UNAUTHENTICATED)
195195 token = authorization[len("Bearer "):]
196- if token not in valid_tokens :
196+ if token not in self._valid_tokens :
197197 raise ConnectError(Code.PERMISSION_DENIED)
198198 return _auth_token.set(token)
199199
@@ -217,7 +217,7 @@ An authentication interceptor checking bearer tokens and storing them to a conte
217217 if not authorization or not authorization.startswith("Bearer "):
218218 raise ConnectError(Code.UNAUTHENTICATED)
219219 token = authorization[len("Bearer "):]
220- if token not in valid_tokens :
220+ if token not in self._valid_tokens :
221221 raise ConnectError(Code.PERMISSION_DENIED)
222222 return _auth_token.set(token)
223223
You can’t perform that action at this time.
0 commit comments