remove default secret_ws_token, set timeout min to 0
This commit is contained in:
@@ -56,7 +56,7 @@ async def validate_ws_token(
|
||||
ws_token: Union[str, None] = Query(default=None, alias="token"),
|
||||
api_config: Dict[str, Any] = Depends(get_api_config)
|
||||
):
|
||||
secret_ws_token = api_config.get('ws_token', 'secret_ws_t0ken.')
|
||||
secret_ws_token = api_config.get('ws_token', None)
|
||||
secret_jwt_key = api_config.get('jwt_secret_key', 'super-secret')
|
||||
|
||||
if ws_token and secrets.compare_digest(secret_ws_token, ws_token):
|
||||
|
Reference in New Issue
Block a user