oidc-spa 8.4.3 → 8.4.4

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.
@@ -72,7 +72,7 @@ const homeAndRedirectUri_1 = require("./homeAndRedirectUri");
72
72
  const ensureNonBlankPaint_1 = require("../tools/ensureNonBlankPaint");
73
73
  const StateDataCookie_1 = require("./StateDataCookie");
74
74
  // NOTE: Replaced at build time
75
- const VERSION = "8.4.3";
75
+ const VERSION = "8.4.4";
76
76
  const globalContext = {
77
77
  prOidcByConfigId: new Map(),
78
78
  hasLogoutBeenCalled: (0, id_1.id)(false)
@@ -35,7 +35,7 @@ import { getHomeAndRedirectUri } from "./homeAndRedirectUri";
35
35
  import { ensureNonBlankPaint } from "../tools/ensureNonBlankPaint";
36
36
  import { setStateDataCookieIfEnabled, clearStateDataCookie, getIsStateDataCookieEnabled } from "./StateDataCookie";
37
37
  // NOTE: Replaced at build time
38
- const VERSION = "8.4.3";
38
+ const VERSION = "8.4.4";
39
39
  const globalContext = {
40
40
  prOidcByConfigId: new Map(),
41
41
  hasLogoutBeenCalled: id(false)
@@ -13,9 +13,7 @@ export type UseOidc<DecodedIdToken> = {
13
13
  }): UseOidc.Oidc.NotLoggedIn;
14
14
  };
15
15
  export declare namespace UseOidc {
16
- type WithAutoLogin<DecodedIdToken> = (params?: {
17
- assert: "user logged in";
18
- }) => Oidc.LoggedIn<DecodedIdToken>;
16
+ type WithAutoLogin<DecodedIdToken> = () => Oidc.LoggedIn<DecodedIdToken>;
19
17
  type Oidc<DecodedIdToken> = (Oidc.NotLoggedIn & {
20
18
  decodedIdToken?: never;
21
19
  logout?: never;
@@ -13,9 +13,6 @@ export type UseOidc<DecodedIdToken> = {
13
13
  (params: {
14
14
  assert: "user not logged in";
15
15
  }): UseOidc.Oidc.NotLoggedIn;
16
- (params: {
17
- assert: "ready";
18
- }): Exclude<UseOidc.Oidc<DecodedIdToken>, UseOidc.Oidc.NotReady>;
19
16
  };
20
17
  export declare namespace UseOidc {
21
18
  type WithAutoLogin<DecodedIdToken> = (params?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oidc-spa",
3
- "version": "8.4.3",
3
+ "version": "8.4.4",
4
4
  "description": "OIDC Client for Client Centric Web Applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,9 +13,7 @@ export type UseOidc<DecodedIdToken> = {
13
13
  }): UseOidc.Oidc.NotLoggedIn;
14
14
  };
15
15
  export declare namespace UseOidc {
16
- type WithAutoLogin<DecodedIdToken> = (params?: {
17
- assert: "user logged in";
18
- }) => Oidc.LoggedIn<DecodedIdToken>;
16
+ type WithAutoLogin<DecodedIdToken> = () => Oidc.LoggedIn<DecodedIdToken>;
19
17
  type Oidc<DecodedIdToken> = (Oidc.NotLoggedIn & {
20
18
  decodedIdToken?: never;
21
19
  logout?: never;
@@ -9,9 +9,7 @@ export type UseOidc<DecodedIdToken> = {
9
9
  };
10
10
 
11
11
  export namespace UseOidc {
12
- export type WithAutoLogin<DecodedIdToken> = (params?: {
13
- assert: "user logged in";
14
- }) => Oidc.LoggedIn<DecodedIdToken>;
12
+ export type WithAutoLogin<DecodedIdToken> = () => Oidc.LoggedIn<DecodedIdToken>;
15
13
 
16
14
  export type Oidc<DecodedIdToken> =
17
15
  | (Oidc.NotLoggedIn & {
@@ -8,7 +8,6 @@ export type UseOidc<DecodedIdToken> = {
8
8
  (params?: { assert?: undefined }): UseOidc.Oidc<DecodedIdToken>;
9
9
  (params: { assert: "user logged in" }): UseOidc.Oidc.LoggedIn<DecodedIdToken>;
10
10
  (params: { assert: "user not logged in" }): UseOidc.Oidc.NotLoggedIn;
11
- (params: { assert: "ready" }): Exclude<UseOidc.Oidc<DecodedIdToken>, UseOidc.Oidc.NotReady>;
12
11
  };
13
12
 
14
13
  export namespace UseOidc {