django-rest-framework-jwt token 怎么解码得到用户名

from rest_framework_jwt.utils import jwt_decode_handler

jwt_decode_handler(token)

这样就能得到用户名了

转自: https://segmentfault.com/q/1010000010762645

发布了239 篇原创文章 · 获赞 31 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/soulwyb/article/details/103855672
今日推荐