@lunora/auth 1.0.0-alpha.84 → 1.0.0-alpha.86
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.
|
@@ -1525,7 +1525,7 @@ declare const initiateSLO: (options?: SSOOptions) => import("better-call").Stric
|
|
|
1525
1525
|
declare module "@better-auth/core" {
|
|
1526
1526
|
interface BetterAuthPluginRegistry<AuthOptions, Options> {
|
|
1527
1527
|
sso: {
|
|
1528
|
-
creator: typeof sso;
|
|
1528
|
+
creator: typeof sso$1;
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
@@ -1547,7 +1547,7 @@ type SSOEndpoints<O extends SSOOptions> = {
|
|
|
1547
1547
|
updateSSOProvider: ReturnType<typeof updateSSOProvider>;
|
|
1548
1548
|
deleteSSOProvider: ReturnType<typeof deleteSSOProvider>;
|
|
1549
1549
|
};
|
|
1550
|
-
declare function sso<O extends SSOOptions & {
|
|
1550
|
+
declare function sso$1<O extends SSOOptions & {
|
|
1551
1551
|
domainVerification?: {
|
|
1552
1552
|
enabled: true;
|
|
1553
1553
|
};
|
|
@@ -1561,7 +1561,7 @@ declare function sso<O extends SSOOptions & {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
options: NoInfer<O>;
|
|
1563
1563
|
};
|
|
1564
|
-
declare function sso<O extends SSOOptions>(options?: O | undefined): {
|
|
1564
|
+
declare function sso$1<O extends SSOOptions>(options?: O | undefined): {
|
|
1565
1565
|
id: "sso";
|
|
1566
1566
|
version: string;
|
|
1567
1567
|
endpoints: SSOEndpoints<O>;
|
|
@@ -1571,14 +1571,6 @@ declare function sso<O extends SSOOptions>(options?: O | undefined): {
|
|
|
1571
1571
|
};
|
|
1572
1572
|
options: NoInfer<O>;
|
|
1573
1573
|
};
|
|
1574
|
-
export {
|
|
1575
|
-
/**
|
|
1576
|
-
* The OIDC provider configuration accepted by `registerSSOProvider` — exported so a
|
|
1577
|
-
* caller can type the config it builds (from env, a tenant record, …) before handing it
|
|
1578
|
-
* over.
|
|
1579
|
-
* @experimental
|
|
1580
|
-
*/
|
|
1581
|
-
type OIDCConfig,
|
|
1582
1574
|
/**
|
|
1583
1575
|
* Enterprise SSO — OIDC / OAuth2 / SAML 2.0 providers registered per email domain or
|
|
1584
1576
|
* per organization, with `provisionUser` / `organizationProvisioning` hooks for
|
|
@@ -1587,10 +1579,21 @@ type OIDCConfig,
|
|
|
1587
1579
|
* Two defaults are worth setting deliberately, both documented on the package's docs
|
|
1588
1580
|
* page: `domainVerification` is **off**, so an unverified `domain` still routes
|
|
1589
1581
|
* sign-in; and `/sso/register` is session-only, so any signed-in user may register a
|
|
1590
|
-
* provider unless you narrow `providersLimit`.
|
|
1582
|
+
* provider unless you narrow `providersLimit`. This wrapper does not change either
|
|
1583
|
+
* default — it only warns once, at construction, when `domainVerification` is not
|
|
1584
|
+
* explicitly enabled, naming both exposures. Every option is forwarded to
|
|
1585
|
+
* `@better-auth/sso` untouched.
|
|
1591
1586
|
*
|
|
1592
1587
|
* SAML loads on workerd but its assertion-verify path (pure-JS RSA) has not been
|
|
1593
1588
|
* measured against a Worker CPU budget — treat OIDC/OAuth2 as the supported mode.
|
|
1594
1589
|
* @experimental
|
|
1595
1590
|
*/
|
|
1596
|
-
sso
|
|
1591
|
+
declare const sso: typeof sso$1;
|
|
1592
|
+
export {
|
|
1593
|
+
/**
|
|
1594
|
+
* The OIDC provider configuration accepted by `registerSSOProvider` — exported so a
|
|
1595
|
+
* caller can type the config it builds (from env, a tenant record, …) before handing it
|
|
1596
|
+
* over.
|
|
1597
|
+
* @experimental
|
|
1598
|
+
*/
|
|
1599
|
+
type OIDCConfig, sso };
|
|
@@ -1525,7 +1525,7 @@ declare const initiateSLO: (options?: SSOOptions) => import("better-call").Stric
|
|
|
1525
1525
|
declare module "@better-auth/core" {
|
|
1526
1526
|
interface BetterAuthPluginRegistry<AuthOptions, Options> {
|
|
1527
1527
|
sso: {
|
|
1528
|
-
creator: typeof sso;
|
|
1528
|
+
creator: typeof sso$1;
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
@@ -1547,7 +1547,7 @@ type SSOEndpoints<O extends SSOOptions> = {
|
|
|
1547
1547
|
updateSSOProvider: ReturnType<typeof updateSSOProvider>;
|
|
1548
1548
|
deleteSSOProvider: ReturnType<typeof deleteSSOProvider>;
|
|
1549
1549
|
};
|
|
1550
|
-
declare function sso<O extends SSOOptions & {
|
|
1550
|
+
declare function sso$1<O extends SSOOptions & {
|
|
1551
1551
|
domainVerification?: {
|
|
1552
1552
|
enabled: true;
|
|
1553
1553
|
};
|
|
@@ -1561,7 +1561,7 @@ declare function sso<O extends SSOOptions & {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
options: NoInfer<O>;
|
|
1563
1563
|
};
|
|
1564
|
-
declare function sso<O extends SSOOptions>(options?: O | undefined): {
|
|
1564
|
+
declare function sso$1<O extends SSOOptions>(options?: O | undefined): {
|
|
1565
1565
|
id: "sso";
|
|
1566
1566
|
version: string;
|
|
1567
1567
|
endpoints: SSOEndpoints<O>;
|
|
@@ -1571,14 +1571,6 @@ declare function sso<O extends SSOOptions>(options?: O | undefined): {
|
|
|
1571
1571
|
};
|
|
1572
1572
|
options: NoInfer<O>;
|
|
1573
1573
|
};
|
|
1574
|
-
export {
|
|
1575
|
-
/**
|
|
1576
|
-
* The OIDC provider configuration accepted by `registerSSOProvider` — exported so a
|
|
1577
|
-
* caller can type the config it builds (from env, a tenant record, …) before handing it
|
|
1578
|
-
* over.
|
|
1579
|
-
* @experimental
|
|
1580
|
-
*/
|
|
1581
|
-
type OIDCConfig,
|
|
1582
1574
|
/**
|
|
1583
1575
|
* Enterprise SSO — OIDC / OAuth2 / SAML 2.0 providers registered per email domain or
|
|
1584
1576
|
* per organization, with `provisionUser` / `organizationProvisioning` hooks for
|
|
@@ -1587,10 +1579,21 @@ type OIDCConfig,
|
|
|
1587
1579
|
* Two defaults are worth setting deliberately, both documented on the package's docs
|
|
1588
1580
|
* page: `domainVerification` is **off**, so an unverified `domain` still routes
|
|
1589
1581
|
* sign-in; and `/sso/register` is session-only, so any signed-in user may register a
|
|
1590
|
-
* provider unless you narrow `providersLimit`.
|
|
1582
|
+
* provider unless you narrow `providersLimit`. This wrapper does not change either
|
|
1583
|
+
* default — it only warns once, at construction, when `domainVerification` is not
|
|
1584
|
+
* explicitly enabled, naming both exposures. Every option is forwarded to
|
|
1585
|
+
* `@better-auth/sso` untouched.
|
|
1591
1586
|
*
|
|
1592
1587
|
* SAML loads on workerd but its assertion-verify path (pure-JS RSA) has not been
|
|
1593
1588
|
* measured against a Worker CPU budget — treat OIDC/OAuth2 as the supported mode.
|
|
1594
1589
|
* @experimental
|
|
1595
1590
|
*/
|
|
1596
|
-
sso
|
|
1591
|
+
declare const sso: typeof sso$1;
|
|
1592
|
+
export {
|
|
1593
|
+
/**
|
|
1594
|
+
* The OIDC provider configuration accepted by `registerSSOProvider` — exported so a
|
|
1595
|
+
* caller can type the config it builds (from env, a tenant record, …) before handing it
|
|
1596
|
+
* over.
|
|
1597
|
+
* @experimental
|
|
1598
|
+
*/
|
|
1599
|
+
type OIDCConfig, sso };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sso as
|
|
1
|
+
import{sso as o}from"@better-auth/sso";const n=i=>{i?.domainVerification?.enabled!==!0&&console.warn("@lunora/auth: sso() is installed without `domainVerification: { enabled: true }` — an unverified `domain` still routes sign-in, so any signed-in user can register an identity provider for a domain they do not own. `/sso/register` is also session-only; narrow `providersLimit` if you keep verification off. Pass `domainVerification: { enabled: true }` once your deployment can prove domain ownership.")},r=(i=>(n(i),o(i)));export{r as sso};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/auth",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.86",
|
|
4
4
|
"description": "Auth for Lunora — a thin better-auth wrapper: email/password, OAuth, plugins, D1-backed",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@better-auth/passkey": "1.7.0-rc.2",
|
|
104
104
|
"@better-auth/scim": "1.7.0-rc.2",
|
|
105
105
|
"@lunora/errors": "1.0.0-alpha.22",
|
|
106
|
-
"@lunora/server": "1.0.0-alpha.
|
|
106
|
+
"@lunora/server": "1.0.0-alpha.78",
|
|
107
107
|
"@lunora/values": "1.0.0-alpha.27",
|
|
108
108
|
"@visulima/disposable-email-domains": "1.1.0",
|
|
109
109
|
"@visulima/email-verifier": "1.0.2",
|