diff --git a/dagshub/auth/token_auth.py b/dagshub/auth/token_auth.py index e1b681a1..64dcc6a8 100644 --- a/dagshub/auth/token_auth.py +++ b/dagshub/auth/token_auth.py @@ -193,6 +193,8 @@ class HTTPBearerAuth(Auth): """Attaches HTTP Bearer Authorization to the given Request object.""" def __init__(self, token): + if token == "": + raise ValueError("token can't be empty") self.token = token def auth_flow(self, request: Request) -> Generator[Request, Response, None]: