OptionalaccessOptionalalgClient key algorithm (default ES256).
OptionalallowAllow non-TLS endpoints and finish URIs other than loopback (default false).
OptionalclassThe client's class_id (section 2.3): the identifier of the registered
application this key is an instance of. An AS that accepts unregistered instances (iya-sts:
gnap.unregisteredInstances, the default) then accepts a browser's key with no registration of its own.
OptionalclockAllowed clock skew for an id_token assertion (default 30).
OptionaldiscoveryHow long a discovery document is cached (default 1h).
OptionaldisplayWhat the approval page shows about this client (section 2.3.2): self-declared, never a reason for more trust.
OptionalfetchCustom fetch implementation.
Optionalinit: RequestInitOptionalfinishWhere the AS sends the browser back after interaction (the redirect finish URI, section 2.5.2). Required for a redirect interaction.
OptionalgrantThe AS's grant endpoint, e.g. https://as.example.com/gnap.
Its discovery document is read with an OPTIONS request (RFC 9635 section 9).
OptionalhashThe interaction hash method to ask for (default sha-256).
OptionalhttpPer-request timeout (default 10000).
OptionalidVerify an id_token subject assertion against this issuer's keys. Without it, an assertion is
kept as received and never decoded.
OptionalinstanceWhere an instance_id is remembered.
OptionalkeyThe client key. Default: loaded from, or created in, keyStore.
OptionalkeyWhere the key is kept (default memory: a new client
instance every page load). Use new IndexedDBKeyStore() to keep a non-extractable key.
OptionalmaxThe longest wait (section 3.1) the client sleeps for a too_fast
continuation before giving up (default 10).
OptionalmetadataA discovery document to use instead of discovering one.
OptionalrequireRefuse an access token issued with the bearer flag
(section 3.2.1): this client asks for key-bound tokens. Default true.
OptionalsignalsCAEP and RISC. Omitted or true is on. false removes
ssf.read and ssf.manage from the grant request. The subject request is unchanged.
OptionalsubjectWho the resource
owner is (section 2.2). Default { subIdFormats: ['iss_sub', 'opaque'] }. false asks for nothing.
OptionaltransactionWhere pending grants wait for the callback (default sessionStorage).
OptionaltransactionHow long a pending grant stays redeemable (default 600).
OptionaluseSend the instance_id the AS handed out (section 3.5) instead of
the key by value in later requests. Default false.
The access rights to request by default (section 8): reference strings such as
"ssf.read", or objects withtype,actions, ...