Closed elcolie closed 6 years ago
Django 1.11.7 djangorestframework-jwt==1.11.0 djangorestframework==3.7.3 pyjwt==1.5.3 # via djangorestframework-jwt
JWT_AUTH = { 'JWT_ENCODE_HANDLER': 'rest_framework_jwt.utils.jwt_encode_handler', 'JWT_DECODE_HANDLER': 'rest_framework_jwt.utils.jwt_decode_handler', 'JWT_PAYLOAD_HANDLER': 'rest_framework_jwt.utils.jwt_payload_handler', 'JWT_PAYLOAD_GET_USER_ID_HANDLER': 'rest_framework_jwt.utils.jwt_get_user_id_from_payload_handler', 'JWT_RESPONSE_PAYLOAD_HANDLER': 'rest_framework_jwt.utils.jwt_response_payload_handler', 'JWT_GET_USER_SECRET_KEY': None, 'JWT_PUBLIC_KEY': None, 'JWT_PRIVATE_KEY': None, 'JWT_ALGORITHM': 'HS256', 'JWT_VERIFY': True, 'JWT_VERIFY_EXPIRATION': True, 'JWT_LEEWAY': 0, 'JWT_EXPIRATION_DELTA': datetime.timedelta(hours=8), 'JWT_AUDIENCE': None, 'JWT_ISSUER': None, 'JWT_ALLOW_REFRESH': True, 'JWT_REFRESH_EXPIRATION_DELTA': datetime.timedelta(days=7), 'JWT_AUTH_HEADER_PREFIX': 'JWT', 'JWT_AUTH_COOKIE': None, }
Error
{ "non_field_errors": [ "orig_iat field is required." ] }
Where am I wrong?
I have a problem with my plugin in the browser
@elcolie I have this problem to, what plugin produces that error?
Sorry I forgot.
I did not set JWT_ALLOW_REFRESH to True. Sorry, my stupid mistake.
JWT_ALLOW_REFRESH
True
Django 1.11.7 djangorestframework-jwt==1.11.0 djangorestframework==3.7.3 pyjwt==1.5.3 # via djangorestframework-jwt
Error
Where am I wrong?