def METHOD_NAME(auth):
    # type: (str) -> Tuple[str, str]
    """Fix the JWT auth token.
    The JWA spec defines the signature to be a pair of 32octet encoded
    longs.
    The `ecdsa` library signs using a raw, 32octet pair of values (s, r).
    Cryptography, which uses OpenSSL, uses a DER sequence of (s, r).
    This function converts the raw ecdsa to DER.
    :param auth: A JWT authorization token.
    :type auth: str
    :return tuple containing the signature material and signature
    """
    payload, asig = auth.encode('utf8').rsplit(".", 1)
    sig = base64.urlsafe_b64decode(repad(asig))
    if len(sig) != 64:
        return payload, sig
    encoded = utils.encode_dss_signature(
        s=int(binascii.hexlify(sig[32:]), 16),
        r=int(binascii.hexlify(sig[:32]), 16)
    )
    return payload, encoded