@crossauth/frontend 0.0.26 → 0.0.28

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.
@@ -1,5 +1,6 @@
1
- import { CrossauthError } from "@crossauth/common";
1
+ import { CrossauthError } from '@crossauth/common';
2
2
  import { OAuthTokenProvider } from './tokenprovider.ts';
3
+
3
4
  /**
4
5
  * Used by {@link OAuthClient} and {@link OAuthBffClient} to automatically
5
6
  * refresh access and ID tokens
@@ -1,4 +1,5 @@
1
- import { CrossauthError } from "@crossauth/common";
1
+ import { CrossauthError } from '@crossauth/common';
2
+
2
3
  /**
3
4
  * A browser-side OAuth client designed with work with the
4
5
  * backend-for-frontend (BFF) mode of the backend OAuth client.
@@ -1,6 +1,6 @@
1
- import { OAuthClientBase, CrossauthError } from '@crossauth/common';
2
- import type { OAuthTokenResponse, OAuthDeviceAuthorizationResponse } from '@crossauth/common';
1
+ import { OAuthClientBase, CrossauthError, OAuthTokenResponse, OAuthDeviceAuthorizationResponse } from '@crossauth/common';
3
2
  import { OAuthTokenConsumer } from './tokenconsumer';
3
+
4
4
  /**
5
5
  * This is the type for a function that is called when an OAuth endpoint
6
6
  * returns the `error` field.
@@ -1,4 +1,5 @@
1
- import { OAuthClientBase } from "@crossauth/common";
1
+ import { OAuthClientBase } from '@crossauth/common';
2
+
2
3
  /**
3
4
  * Used by {@link OAuthClient} and {@link OAuthBffClient} to poll for
4
5
  * authorization in the device code flow
@@ -1,4 +1,5 @@
1
- import { OAuthTokenConsumerBase } from "@crossauth/common";
1
+ import { OAuthTokenConsumerBase } from '@crossauth/common';
2
+
2
3
  export declare class OAuthTokenConsumer extends OAuthTokenConsumerBase {
3
4
  /**
4
5
  * SHA256 and Base64-url-encodes the given test
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crossauth/frontend",
3
3
  "private": false,
4
- "version": "0.0.26",
4
+ "version": "0.0.28",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
25
- "@crossauth/common": "^0.0.26"
25
+ "@crossauth/common": "^0.0.28"
26
26
  },
27
27
  "scripts": {
28
28
  "dev": "vite",