@authon/js 0.4.1 → 0.4.2
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/README.ko.md +1 -4
- package/README.md +7 -14
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -421,7 +421,8 @@ var ModalRenderer = class {
|
|
|
421
421
|
<span>${config.label}</span>
|
|
422
422
|
</button>`;
|
|
423
423
|
}).join("") : "";
|
|
424
|
-
const
|
|
424
|
+
const hasVisibleProviders = showProviders && this.enabledProviders.filter((p) => !b.hiddenProviders?.includes(p)).length > 0;
|
|
425
|
+
const divider = hasVisibleProviders && b.showDivider !== false && b.showEmailPassword !== false ? `<div class="divider"><span>or</span></div>` : "";
|
|
425
426
|
const emailForm = b.showEmailPassword !== false ? `<form class="email-form" id="email-form">
|
|
426
427
|
<input type="email" placeholder="Email address" name="email" required class="input" autocomplete="email" />
|
|
427
428
|
<input type="password" placeholder="Password" name="password" required class="input" autocomplete="${isSignUp ? "new-password" : "current-password"}" />
|