Commit a1e83a1e authored by 陈涛's avatar 陈涛

修改jwt

parent 1c2a618c
......@@ -61,7 +61,11 @@ def decode_token(token):
key=settings.public_key,
issuer=f'http://{urlparse(settings.identify_jwt).netloc}',
algorithms=[settings.algorithms],
options={'verify_iss': False if settings.env == 'LOCAL' else True, 'verify_aud': False})
options={
'verify_iss': False,
# 'verify_iss': False if settings.env == 'LOCAL' else True,
'verify_aud': False}
)
return payload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment