Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mardiros_fastlife /src /fastlife /domain /model /csrf.py
| """Models relative to the security.""" | |
| import secrets | |
| from pydantic import BaseModel | |
| def create_csrf_token() -> str: | |
| """A helper that create a csrf token.""" | |
| return secrets.token_urlsafe(5) | |
| class CSRFToken(BaseModel): | |
| """Represent the CSRF Token""" | |
| name: str | |
| """Name of the token while serialized.""" | |
| value: str | |
| """Value that must match between parts, cookie and posted form.""" | |
Xet Storage Details
- Size:
- 414 Bytes
- Xet hash:
- d7a363ac59bb3ab46c1a9f135d136a7e658ad1124c33d112dac15395ec09846d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.