iya-sts
    Preparing search index...
    verify: (value: unknown, keys: any, context?: any) => Promise<any> = ...

    Type Declaration

      • (value: unknown, keys: any, context?: any): Promise<any>
      • Verifies a biscuit against the AS's public key and checks it against the presentation context.

        Parameters

        • value: unknown

          the presented token value

        • keys: any

          { publicKey }, an Ed25519 node KeyObject

        • Optionalcontext: any

          the presentation to check the token against

        Returns Promise<any>

        { ok: true, model, attenuated }, or a refusal