Member Junction
    Preparing search index...
    • Verifies a parsed assertion against the request and the sender's registered public key. Checks clock skew, then the audience, then the signature over the canonical string (which covers the body hash, method and path).

      Parameters

      • p: {
            Assertion: MJDiagSenderAssertion;
            BodySha256Hex: string;
            ExpectedAudience: string;
            MaxSkewSeconds?: number;
            Method: string;
            Now?: Date;
            Path: string;
            PublicKeyBase64: string;
        }

      Returns Promise<{ Ok: true } | { Ok: false; Reason: MJDiagAssertionFailure }>