oidc-spa 5.0.0 → 5.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.
- package/mock/react.d.ts +1 -6
- package/oidc.d.ts +1 -0
- package/oidc.js +194 -95
- package/oidc.js.map +1 -1
- package/package.json +1 -1
- package/react/react.d.ts +0 -2
- package/react/react.js +0 -2
- package/react/react.js.map +1 -1
- package/src/oidc.ts +179 -19
- package/src/react/react.tsx +0 -6
package/mock/react.d.ts
CHANGED
|
@@ -30,14 +30,9 @@ export declare function createMockReactOidc<DecodedIdToken extends Record<string
|
|
|
30
30
|
assertUserLoggedIn: true;
|
|
31
31
|
}): import("../react/react").OidcReact.LoggedIn<DecodedIdToken>;
|
|
32
32
|
} : never : never;
|
|
33
|
-
|
|
33
|
+
getOidc: () => Promise<(ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> extends infer T ? T extends ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> ? T extends {
|
|
34
34
|
isAuthGloballyRequired?: true | undefined;
|
|
35
35
|
} ? true : false : never : never) extends infer T_3 ? T_3 extends (ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> extends infer T ? T extends ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> ? T extends {
|
|
36
36
|
isAuthGloballyRequired?: true | undefined;
|
|
37
37
|
} ? true : false : never : never) ? T_3 extends true ? import("..").Oidc.LoggedIn<DecodedIdToken> : import("..").Oidc<DecodedIdToken> : never : never>;
|
|
38
|
-
getOidc: () => Promise<(ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> extends infer T ? T extends ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> ? T extends {
|
|
39
|
-
isAuthGloballyRequired?: true | undefined;
|
|
40
|
-
} ? true : false : never : never) extends infer T_4 ? T_4 extends (ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> extends infer T ? T extends ParamsOfCreateMockOidc<DecodedIdToken, IsAuthGloballyRequired> ? T extends {
|
|
41
|
-
isAuthGloballyRequired?: true | undefined;
|
|
42
|
-
} ? true : false : never : never) ? T_4 extends true ? import("..").Oidc.LoggedIn<DecodedIdToken> : import("..").Oidc<DecodedIdToken> : never : never>;
|
|
43
38
|
};
|
package/oidc.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ export type ParamsOfCreateOidc<DecodedIdToken extends Record<string, unknown> =
|
|
|
149
149
|
__unsafe_ssoSessionIdleSeconds?: number;
|
|
150
150
|
autoLogoutParams?: Parameters<Oidc.LoggedIn<any>["logout"]>[0];
|
|
151
151
|
isAuthGloballyRequired?: IsAuthGloballyRequired;
|
|
152
|
+
doEnableDebugLogs?: boolean;
|
|
152
153
|
};
|
|
153
154
|
/** @see: https://docs.oidc-spa.dev/v/v5/documentation/usage */
|
|
154
155
|
export declare function createOidc<DecodedIdToken extends Record<string, unknown> = Record<string, unknown>, IsAuthGloballyRequired extends boolean = false>(params: ParamsOfCreateOidc<DecodedIdToken, IsAuthGloballyRequired>): Promise<IsAuthGloballyRequired extends true ? Oidc.LoggedIn<DecodedIdToken> : Oidc<DecodedIdToken>>;
|