Setu-TS
    Preparing search index...

    Resolves the tenant id from a claim in an unverified JWT payload.

    Security note: This resolver uses unverified decode — tenant identity is taken from an unsigned token claim. An application using this without auth middleware must understand a client could spoof the tenant claim.

    const resolver = new JwtResolver({ claim: 'tenant_id' });
    const result = await resolver.resolve(request);
    // => some({ id: 'acme' }) when payload has tenant_id='acme'

    Implements

    Index