MCPcopy Create free account
hub / github.com/OpenRouterTeam/python-sdk / _apply_bearer

Function _apply_bearer

src/openrouter/utils/security.py:187–188  ·  view source on GitHub ↗
(token: str)

Source from the content-addressed store, hash-verified

185
186
187def _apply_bearer(token: str) -> str:
188 return token.lower().startswith("bearer ") and token or f"Bearer {token}"
189
190
191def _parse_basic_auth_scheme(headers: Dict[str, str], scheme: Any):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected