def _parse_jwt(jwt): """ Parses and returns the following parts of the jwt: header_and_payload, signature """ jwt_parts = jwt.split(JWT_DELIMITER) header_and_payload = JWT_DELIMITER.join(jwt_parts[0:2]) signature = jwt_parts[2] return header_and_payload, signature
def _parse_jwt(jwt): """ Parses and returns the following parts of the jwt: header_and_payload, signature """ jwt_parts = jwt.split(JWT_DELIMITER) header_and_payload = JWT_DELIMITER.join(jwt_parts[0:2]) signature = jwt_parts[2] return header_and_payload, signature