@sparkvault/sdk-js 9.0.0 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,14 +115,16 @@ export declare class IdentityModule {
115
115
  * Decode an identity token's claims WITHOUT verifying its signature.
116
116
  *
117
117
  * This is an UNVERIFIED, client-side decode: it parses the JWT payload and
118
- * sanity-checks structure, `exp`, `iss`, `aud`, and the header `alg` (rejecting
119
- * `none` and any non-EdDSA algorithm so an unsigned or algorithm-confused token
120
- * cannot masquerade as valid). It does NOT verify the Ed25519 signature, so its
121
- * result MUST NOT be trusted for any authorization decision.
118
+ * sanity-checks structure, `exp`, `iss`, `aud`, and the header `alg` (accepting
119
+ * only the algorithms the Identity server signs with, so an unsigned or
120
+ * algorithm-confused token cannot masquerade as valid). It does NOT verify the
121
+ * signature, so its result MUST NOT be trusted for any authorization decision.
122
122
  *
123
123
  * To trust a token (e.g. before keying records by `claims.svid`), verify the
124
- * Ed25519 signature server-side against the Identity JWKS endpoint
125
- * (`https://auth.sparkvault.com/{account_id}/.well-known/jwks.json`). See docs/SDK.md.
124
+ * signature server-side against the Identity JWKS endpoint
125
+ * (`https://auth.sparkvault.com/{account_id}/.well-known/jwks.json`), which
126
+ * publishes the EdDSA and RS256 keys and selects the verifying key by `kid`.
127
+ * See docs/SDK.md.
126
128
  */
127
129
  decodeToken(token: string): TokenClaims;
128
130
  /**
@@ -197,7 +199,7 @@ export declare class IdentityModule {
197
199
  private consumeSignInPending;
198
200
  /** Remove the result fragment from the URL bar (and history entry). */
199
201
  private clearUrlFragment;
200
- /** Drop the one-shot PKCE state/verifier (+ recovery hint) a bounce staged. */
202
+ /** Drop the one-shot PKCE state/verifier a bounce staged. */
201
203
  private clearOneShotAuthState;
202
204
  private consumeRedirectResult;
203
205
  /**