I am getting a Module not found error when using jwt. Here is how I declared it:
def create_jwt_token(): payload = { \"iat\": int(time.time(
You can use the PyJWT package, where jwt.encode() works fine (no need for initialization or other kinds of stuff).
jwt.encode()