RFC 7638 SHA-256 thumbprint of the public key (the jkt).
StaticcreateBuilds a key from a CryptoKeyPair, generating a new pair if none is given.
Generated keys are non-extractable unless extractable is set, which sessionStorage requires.
Optionalopts: { alg?: string; extractable?: boolean; keyPair?: CryptoKeyPair } = {}StaticloadLoads the key held in store, or creates one and stores it.
Optionalopts: { alg?: string } = {}Creates a DPoP proof JWT (RFC 9449 §4.2).
A DPoP key pair (RFC 9449) and the proofs made with it.
The private key is generated NON-EXTRACTABLE: script running in the page (including injected script) can ask it to sign while the page is open, but can never read it out, so a stolen access or refresh token is useless anywhere else. Keep the same key for the lifetime of the tokens it binds.
IndexedDBKeyStorekeeps that non-extractable key across page loads.WebStorageKeyStorekeeps an extractable copy in sessionStorage for this tab, which is what Web Storage can hold.