Django Rest Framework JWT: How to change the token expiration time when logged in

前端 未结 3 1130
甜味超标
甜味超标 2020-12-17 01:53

I\'m using Django REST framework JWT Auth for session creation and permissions, the only problem is: when I log in and after the token expires I can\'t continue doing the op

3条回答
  •  眼角桃花
    2020-12-17 02:28

    just add this line to your JWT_AUTH in settings.py file:

        'JWT_VERIFY_EXPIRATION': False,
    

    it worked for me.

提交回复
热议问题