This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
def my_jwt_response_msg(token, user=None, request=None):
"""
自定义JWT响应的数据格式,默认只有token。
:param token:
:param user:
:param request:
:return:
return {
'token': token,
'user_id': user.id,
'user_name': user.username,
}