oleg-agapov/flask-jwt-auth

Some methods are deprecated

mohsen1565 opened this issue · 0 comments

Hi Oleg.
I cloned the repository and found that some methods are deprecated and if I try to change their names to what's suggested by "flask_jwt_extended", it would break more things.. I think the code needs a test and update since it was based on older Python modules. Here's an example of errors I'm getting right now:

(venv) d806848@nebula-03:~/flask-jwt-auth$ FLASK_APP=run.py FLASK_DEBUG=1 flask run --host=0.0.0.0

  • Serving Flask app 'run.py' (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
    Traceback (most recent call last):
    File "/home/d806848/flask-jwt-auth/venv/bin/flask", line 8, in
    sys.exit(main())
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/flask/cli.py", line 994, in main
    cli.main(args=sys.argv[1:])
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/flask/cli.py", line 600, in main
    return super().main(*args, **kwargs)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/flask/cli.py", line 849, in run_command
    app = DispatchingApp(info.load_app, use_eager_loading=eager_loading)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/flask/cli.py", line 324, in init
    self._load_unlocked()
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/flask/cli.py", line 350, in _load_unlocked
    self._app = rv = self.loader()
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/flask/cli.py", line 406, in load_app
    app = locate_app(self, import_name, name)
    File "/home/d806848/flask-jwt-auth/venv/lib/python3.6/site-packages/flask/cli.py", line 260, in locate_app
    import(module_name)
    File "/home/d806848/flask-jwt-auth/run.py", line 25, in
    @jwt.token_in_blacklist_loader
    AttributeError: 'JWTManager' object has no attribute 'token_in_blacklist_loader'
    (venv) d806848@nebula-03:~/flask-jwt-auth$