MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / optional_system_auth

Function optional_system_auth

astrbot/dashboard/api/auth.py:283–286  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

281
282
283async def optional_system_auth(request: Request) -> AuthContext | None:
284 if not _has_auth_credentials(request):
285 return None
286 return await require_system_scope(request)
287
288
289async def _login(

Callers

nothing calls this directly

Calls 2

_has_auth_credentialsFunction · 0.85
require_system_scopeFunction · 0.70

Tested by

no test coverage detected