@apicurio/common-ui-components 2.0.9 → 2.0.11
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/dist/main.js +10 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2418,7 +2418,13 @@ const Ls = async (e, t) => {
|
|
|
2418
2418
|
isOidcAuthEnabled: () => !0,
|
|
2419
2419
|
isBasicAuthEnabled: () => !1,
|
|
2420
2420
|
isAuthenticated: Os,
|
|
2421
|
-
getToken:
|
|
2421
|
+
getToken: async () => {
|
|
2422
|
+
if (e.options.logTokens) {
|
|
2423
|
+
const t = await (u == null ? void 0 : u.getUser());
|
|
2424
|
+
console.debug("[Auth] ID Token:"), console.debug(t == null ? void 0 : t.id_token), console.debug("[Auth] Access Token:"), console.debug(t == null ? void 0 : t.access_token);
|
|
2425
|
+
}
|
|
2426
|
+
return e.options.tokenType === "id" ? qs() : Ns();
|
|
2427
|
+
},
|
|
2422
2428
|
getUsernameAndPassword: () => {
|
|
2423
2429
|
},
|
|
2424
2430
|
getUsername: Ds,
|
|
@@ -2428,7 +2434,8 @@ const Ls = async (e, t) => {
|
|
|
2428
2434
|
isOidcAuthEnabled: () => !1,
|
|
2429
2435
|
isBasicAuthEnabled: () => !0,
|
|
2430
2436
|
isAuthenticated: Hs,
|
|
2431
|
-
getToken: () =>
|
|
2437
|
+
getToken: async () => {
|
|
2438
|
+
},
|
|
2432
2439
|
getUsernameAndPassword: Fs,
|
|
2433
2440
|
getUsername: $s,
|
|
2434
2441
|
login: Ls,
|
|
@@ -2731,7 +2738,7 @@ const Ls = async (e, t) => {
|
|
|
2731
2738
|
ae,
|
|
2732
2739
|
{
|
|
2733
2740
|
isRequired: !0,
|
|
2734
|
-
type: "
|
|
2741
|
+
type: "password",
|
|
2735
2742
|
id: "form-password",
|
|
2736
2743
|
"data-testid": "basic-auth-login-modal-password",
|
|
2737
2744
|
name: "form-password",
|