Spaces:
Running
Running
Download code-review-env/sample_codebase/auth.py from Athmabhiram1/nodeaudit-openenv: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/spaces/Athmabhiram1/nodeaudit-openenv/resolve/main/code-review-env/sample_codebase/auth.py
- Command line
-
hf download hf://spaces/Athmabhiram1/nodeaudit-openenv/code-review-env/sample_codebase/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/Athmabhiram1/nodeaudit-openenv/resolve/main/code-review-env/sample_codebase/auth.py
221 Bytes
| """Auth helpers.""" | |
| import config | |
| def issue_session_token(user_id: str) -> str: | |
| return f"{user_id}:{config.SECRET_KEY}:session-token-generated-with-a-very-long-suffix-that-triggers-style-rules-and-is-hard-to-read" | |