Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Dict Str NameLoad decorator_list
N/A N/A jwt N/A uuid N/A warnings calendar timegm datetime datetime rest_framework_jwt.compat get_username get_username_field rest_framework_jwt.settings api_settings jwt_payload_handler N/A N/A user N/A N/A N/A username_field N/A get_username_field N/A username N/A get_username user N/A N/A N/A warnings warn The following fields will be removed in the future: `email` and `user_id`.  DeprecationWarning N/A payload N/A user_id email username exp N/A user pk N/A user email username N/A N/A N/A datetime utcnow N/A api_settings JWT_EXPIRATION_DELTA N/A N/A isinstance N/A user pk N/A uuid UUID N/A N/A N/A payload N/A user_id N/A str N/A user pk N/A N/A payload N/A username_field username N/A N/A api_settings JWT_ALLOW_REFRESH N/A N/A N/A payload N/A orig_iat N/A timegm N/A N/A N/A N/A datetime utcnow utctimetuple N/A N/A N/A api_settings JWT_AUDIENCE None N/A N/A N/A payload N/A aud N/A api_settings JWT_AUDIENCE N/A N/A N/A api_settings JWT_ISSUER None N/A N/A N/A payload N/A iss N/A api_settings JWT_ISSUER N/A payload N/A jwt_get_user_id_from_payload_handler N/A N/A payload N/A N/A N/A 
    Override this function if user_id is formatted differently in payload
     N/A N/A N/A warnings warn The following will be removed in the future. Use `JWT_PAYLOAD_GET_USERNAME_HANDLER` instead. DeprecationWarning N/A N/A N/A payload get user_id N/A jwt_get_username_from_payload_handler N/A N/A payload N/A N/A N/A 
    Override this function if username is formatted differently in payload
     N/A N/A N/A payload get username N/A jwt_encode_handler N/A N/A payload N/A N/A N/A N/A N/A N/A N/A jwt encode payload N/A N/A api_settings JWT_PRIVATE_KEY N/A api_settings JWT_SECRET_KEY N/A api_settings JWT_ALGORITHM decode utf-8 N/A jwt_decode_handler N/A N/A token N/A N/A N/A options N/A verify_exp N/A api_settings JWT_VERIFY_EXPIRATION N/A N/A N/A jwt decode token N/A N/A api_settings JWT_PUBLIC_KEY N/A api_settings JWT_SECRET_KEY N/A api_settings JWT_VERIFY options options leeway N/A api_settings JWT_LEEWAY audience N/A api_settings JWT_AUDIENCE issuer N/A api_settings JWT_ISSUER algorithms N/A N/A api_settings JWT_ALGORITHM N/A jwt_response_payload_handler N/A N/A token user request N/A None None N/A N/A 
    Returns the response data for both the login and refresh views.
    Override to return a custom response such as including the
    serialized representation of the User.

    Example:

    def jwt_response_payload_handler(token, user=None, request=None):
        return {
            'token': token,
            'user': UserSerializer(user, context={'request': request}).data
        }

     N/A N/A token token N/A