ark-oauth-client-js 2.1.1 → 2.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ark-oauth-client-js",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "The OpenID Connect client for browser apps signing in against Ark.oAuth.Oidc. Framework-agnostic, with adapters for React, Next.js, Vue and Angular (and a Svelte-compatible store). Authorization code + PKCE as a public client, ID token verification in the browser (signature, nonce, at_hash, c_hash, iss), rotating refresh tokens coordinated across tabs, popup or redirect sign-in, RP-initiated logout, account switching on a shared browser, and an authorised fetch. No runtime dependencies.",
5
5
  "keywords": [
6
6
  "oauth",
package/src/config.js CHANGED
@@ -137,7 +137,7 @@ export function normalizeConfig(options = {}) {
137
137
  throw new ArkConfigError(
138
138
  'ark_oauth_client: a browser app cannot keep a client secret or a private key: anything in the bundle is readable by ' +
139
139
  "every visitor. Register this app as a public client (token endpoint auth method 'none'; PKCE protects the code), " +
140
- 'or keep the confidential client on a server with ark-oauth-client (Node), ark-oauth-client (Python) or Ark.oAuth.Client (.NET).'
140
+ 'or keep the confidential client on a server with ark-oauth-client-node (Node), ark-oauth-client (Python) or Ark.oAuth.Client (.NET).'
141
141
  );
142
142
  }
143
143
 
package/src/errors.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * library that collapses `invalid_grant` and a CORS failure into one thrown string forces the
7
7
  * application to parse English to decide whether to retry, sign the user in again, or give up.
8
8
  *
9
- * The names and fields match `ark-oauth-client` for Node, so code that handles errors from one
9
+ * The names and fields match `ark-oauth-client-node`, so code that handles errors from one
10
10
  * reads the same against the other.
11
11
  */
12
12
 
package/src/tokens.js CHANGED
@@ -7,7 +7,7 @@ import { decodeJwt } from './jwt.js';
7
7
  * means something only at the instant it is received, and a token set read back from sessionStorage
8
8
  * after a reload cannot answer "are you still valid" from a number relative to a forgotten moment.
9
9
  *
10
- * The same class, fields and JSON shape as `TokenSet` in `ark-oauth-client` for Node.
10
+ * The same class, fields and JSON shape as `TokenSet` in `ark-oauth-client-node`.
11
11
  */
12
12
  export class TokenSet {
13
13
  /**
package/src/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The package version. Kept in step with `ark-oauth-client` (npm), `ark-oauth-client` (PyPI) and
3
- * `Ark.oAuth.Client` (NuGet): the four clients are ports of each other and release together.
2
+ * The package version. Kept in step with `ark-oauth-client-node` (npm), `ark-oauth-client` (PyPI)
3
+ * and `Ark.oAuth.Client` (NuGet): the four clients are ports of each other and release together.
4
4
  */
5
- export const VERSION = '2.1.1';
5
+ export const VERSION = '2.2.0';