oidc-spa 8.0.2 → 8.0.3

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,6 +1,6 @@
1
1
  import type { OidcMetadata } from "./OidcMetadata";
2
2
  import type { Oidc } from "./Oidc";
3
- export type ParamsOfCreateOidc<DecodedIdToken extends Record<string, unknown> = Record<string, unknown>, AutoLogin extends boolean = false> = {
3
+ export type ParamsOfCreateOidc<DecodedIdToken extends Record<string, unknown> = Oidc.Tokens.DecodedIdToken_base, AutoLogin extends boolean = false> = {
4
4
  issuerUri: string;
5
5
  clientId: string;
6
6
  /**
@@ -62,7 +62,7 @@ const isNewBrowserSession_1 = require("./isNewBrowserSession");
62
62
  const getIsOnline_1 = require("../tools/getIsOnline");
63
63
  const isKeycloak_1 = require("../keycloak/isKeycloak");
64
64
  // NOTE: Replaced at build time
65
- const VERSION = "8.0.2";
65
+ const VERSION = "8.0.3";
66
66
  const globalContext = {
67
67
  prOidcByConfigId: new Map(),
68
68
  hasLogoutBeenCalled: (0, tsafe_1.id)(false),
@@ -1,6 +1,6 @@
1
1
  import type { OidcMetadata } from "./OidcMetadata";
2
2
  import type { Oidc } from "./Oidc";
3
- export type ParamsOfCreateOidc<DecodedIdToken extends Record<string, unknown> = Record<string, unknown>, AutoLogin extends boolean = false> = {
3
+ export type ParamsOfCreateOidc<DecodedIdToken extends Record<string, unknown> = Oidc.Tokens.DecodedIdToken_base, AutoLogin extends boolean = false> = {
4
4
  issuerUri: string;
5
5
  clientId: string;
6
6
  /**
@@ -25,7 +25,7 @@ import { createGetIsNewBrowserSession } from "./isNewBrowserSession";
25
25
  import { getIsOnline } from "../tools/getIsOnline";
26
26
  import { isKeycloak } from "../keycloak/isKeycloak";
27
27
  // NOTE: Replaced at build time
28
- const VERSION = "8.0.2";
28
+ const VERSION = "8.0.3";
29
29
  const globalContext = {
30
30
  prOidcByConfigId: new Map(),
31
31
  hasLogoutBeenCalled: id(false),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oidc-spa",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "Openidconnect client for Single Page Applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,7 +52,7 @@ import { isKeycloak } from "../keycloak/isKeycloak";
52
52
  const VERSION = "{{OIDC_SPA_VERSION}}";
53
53
 
54
54
  export type ParamsOfCreateOidc<
55
- DecodedIdToken extends Record<string, unknown> = Record<string, unknown>,
55
+ DecodedIdToken extends Record<string, unknown> = Oidc.Tokens.DecodedIdToken_base,
56
56
  AutoLogin extends boolean = false
57
57
  > = {
58
58
  issuerUri: string;