cauthy-auth 0.38.0 → 0.38.1
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1742,7 +1742,8 @@ function createCauthy(given = {}) {
|
|
|
1742
1742
|
// Whether the workspace signs people in with a password at all. A
|
|
1743
1743
|
// Cauthy from before the setting says nothing of it: then it does.
|
|
1744
1744
|
passwordSignIn: settings.data?.allow_password !== false,
|
|
1745
|
-
|
|
1745
|
+
// The workspace's switch, and how the application's own system takes sign-ups.
|
|
1746
|
+
signUp: settings.data?.allow_signup !== false && settings.data?.signup?.mode !== "invite_only",
|
|
1746
1747
|
// The application's system makes an organization per sign-up: the form asks the company's name.
|
|
1747
1748
|
...settings.data?.signup?.organization?.ask === true ? { organization: { ask: true, required: settings.data.signup.organization.required === true } } : {},
|
|
1748
1749
|
// A sign-in link needs a page of the application to open.
|