Download auth/jwt_utils.py from deedrop1140/machinelearningalgorithms: direct link, hf CLI and curl.
- Browser
- Download file 132 Bytes
-
https://huggingface.co/spaces/deedrop1140/machinelearningalgorithms/resolve/main/auth/jwt_utils.py
- Command line
-
hf download hf://spaces/deedrop1140/machinelearningalgorithms/auth/jwt_utils.py
-
curl -L -o jwt_utils.py https://huggingface.co/spaces/deedrop1140/machinelearningalgorithms/resolve/main/auth/jwt_utils.py
132 Bytes
| from flask_jwt_extended import create_access_token | |
| def generate_jwt(user_id): | |
| return create_access_token(identity=user_id) | |