Open Sandarualoka opened 3 weeks ago
import jwt import datetime
secret_key = "your_secret_key" payload = { "user_id": 123, "username": "exampleuser", "exp": datetime.datetime.utcnow() + datetime.timedelta(hours=1) # Token expiration }
token = jwt.encode(payload, secret_key, algorithm="HS256") print("JWT Token:", token)
how i can crate the jwt token for the project