feat: advanced RW sync system
This commit is contained in:
@@ -31,6 +31,8 @@ async def get_service_identity(
|
||||
request: Request, session: AsyncSession = Depends(get_db)
|
||||
) -> ServiceIdentity | None:
|
||||
auth = request.headers.get("Authorization")
|
||||
if not auth:
|
||||
raise HTTPException(401)
|
||||
|
||||
if auth.startswith("Bearer"):
|
||||
token = auth.removeprefix("Bearer ").strip()
|
||||
|
||||
Reference in New Issue
Block a user