Spaces:
Sleeping
Sleeping
Download src/teams/auth.py from aurigin/Hackathon_Truth_Vs_Machine: direct link, hf CLI and curl.
- Browser
- Download file 200 Bytes
-
https://huggingface.co/spaces/aurigin/Hackathon_Truth_Vs_Machine/resolve/main/src/teams/auth.py
- Command line
-
hf download hf://spaces/aurigin/Hackathon_Truth_Vs_Machine/src/teams/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/aurigin/Hackathon_Truth_Vs_Machine/resolve/main/src/teams/auth.py
200 Bytes
| from src.teams.storage import get_team_by_token | |
| def validate_token(token: str) -> dict | None: | |
| if not token or not token.strip(): | |
| return None | |
| return get_team_by_token(token.strip()) | |