Sanity Library Reference Docs
    Preparing search index...

    Type Alias ParsedBody<T>

    type ParsedBody<T> = {
        body: T | null;
        isValidSignature: boolean | null;
    }

    Type Parameters

    • T
    Index

    Properties

    body: T | null
    isValidSignature: boolean | null

    If a secret is given then it returns a boolean. If no secret is provided then no validation is done on the signature, and it'll return null