def jwt_get_user_id_from_payload_handler(payload):
 warnings.warn('The following will be removed in the future. Use `JWT_PAYLOAD_GET_USERNAME_HANDLER` instead.', DeprecationWarning)
 return payload.get('user_id')

def jwt_get_user_id_from_payload_handler ( payload ) : warnings . warn ( 'The following will be removed in the future. Use `JWT_PAYLOAD_GET_USERNAME_HANDLER` instead.' , DeprecationWarning ) return payload . get ( 'user_id' )
override this function if user_id is formatted differently in payload .