Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rubelw_OSSS /src /OSSS /auth /deps_fresh.py
| # src/OSSS/auth/deps_fresh.py | |
| from fastapi import Depends, HTTPException, status | |
| from fastapi.security import HTTPAuthorizationCredentials | |
| from OSSS.auth.introspection import introspect | |
| async def get_token_payload_fresh(creds: HTTPAuthorizationCredentials = Depends(bearer)) -> dict: | |
| if not creds: | |
| raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Not authenticated") | |
| return await introspect(creds.credentials) | |
Xet Storage Details
- Size:
- 449 Bytes
- Xet hash:
- 58892a77938b7e6605f6d72d185723fbb24bf18b2cf737f8f3d001ca9fdcd516
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.