@better-auth/sso 1.4.0-beta.20 → 1.4.0-beta.22

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.
@@ -1,17 +1,16 @@
1
1
 
2
- > @better-auth/sso@1.4.0-beta.20 build /home/runner/work/better-auth/better-auth/packages/sso
2
+ > @better-auth/sso@1.4.0-beta.22 build /home/runner/work/better-auth/better-auth/packages/sso
3
3
  > tsdown
4
4
 
5
- ℹ tsdown v0.16.0 powered by rolldown v1.0.0-beta.46
5
+ ℹ tsdown v0.16.5 powered by rolldown v1.0.0-beta.50
6
6
  ℹ Using tsdown config: /home/runner/work/better-auth/better-auth/packages/sso/tsdown.config.ts
7
- ℹ entry: src/client.ts, src/index.ts
7
+ ℹ entry: src/index.ts, src/client.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/client.mjs  0.18 kB │ gzip: 0.16 kB
11
- ℹ dist/index.mjs  0.06 kB │ gzip: 0.07 kB
12
- ℹ dist/src-BUIX9n33.mjs 47.23 kB │ gzip: 8.48 kB
10
+ ℹ dist/index.mjs 48.56 kB │ gzip: 8.72 kB
11
+ ℹ dist/client.mjs  0.15 kB │ gzip: 0.14 kB
13
12
  ℹ dist/client.d.mts  0.21 kB │ gzip: 0.18 kB
14
- ℹ dist/index.d.mts  0.15 kB │ gzip: 0.12 kB
15
- ℹ dist/index-Ba2niv2R.d.mts 20.57 kB │ gzip: 3.36 kB
16
- ℹ 6 files, total: 68.40 kB
17
- ✔ Build complete in 11356ms
13
+ ℹ dist/index.d.mts  0.18 kB │ gzip: 0.14 kB
14
+ ℹ dist/index-DOws6HlV.d.mts 21.24 kB │ gzip: 3.48 kB
15
+ ℹ 5 files, total: 70.34 kB
16
+ ✔ Build complete in 11501ms
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as sso } from "./index-Ba2niv2R.mjs";
1
+ import { t as sso } from "./index-DOws6HlV.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  declare const ssoClient: () => {
package/dist/client.mjs CHANGED
@@ -1,5 +1,3 @@
1
- import "./src-BUIX9n33.mjs";
2
-
3
1
  //#region src/client.ts
4
2
  const ssoClient = () => {
5
3
  return {
@@ -165,6 +165,29 @@ interface SSOOptions {
165
165
  * sign-in need to be called with with requestSignUp as true to create new users.
166
166
  */
167
167
  disableImplicitSignUp?: boolean | undefined;
168
+ /**
169
+ * The model name for the SSO provider table. Defaults to "ssoProvider".
170
+ */
171
+ modelName?: string;
172
+ /**
173
+ * Map fields
174
+ *
175
+ * @example
176
+ * ```ts
177
+ * {
178
+ * samlConfig: "saml_config"
179
+ * }
180
+ * ```
181
+ */
182
+ fields?: {
183
+ issuer?: string | undefined;
184
+ oidcConfig?: string | undefined;
185
+ samlConfig?: string | undefined;
186
+ userId?: string | undefined;
187
+ providerId?: string | undefined;
188
+ organizationId?: string | undefined;
189
+ domain?: string | undefined;
190
+ };
168
191
  /**
169
192
  * Configure the maximum number of SSO providers a user can register.
170
193
  * You can also pass a function that returns a number.
@@ -205,6 +228,7 @@ declare const spMetadata: () => better_call0.StrictEndpoint<"/sso/saml2/sp/metad
205
228
  }, z.core.$strip>;
206
229
  metadata: {
207
230
  openapi: {
231
+ operationId: string;
208
232
  summary: string;
209
233
  description: string;
210
234
  responses: {
@@ -320,6 +344,7 @@ declare const registerSSOProvider: (options?: SSOOptions) => better_call0.Strict
320
344
  }>)[];
321
345
  metadata: {
322
346
  openapi: {
347
+ operationId: string;
323
348
  summary: string;
324
349
  description: string;
325
350
  responses: {
@@ -502,6 +527,7 @@ declare const signInSSO: (options?: SSOOptions) => better_call0.StrictEndpoint<"
502
527
  }, z.core.$strip>;
503
528
  metadata: {
504
529
  openapi: {
530
+ operationId: string;
505
531
  summary: string;
506
532
  description: string;
507
533
  requestBody: {
@@ -588,6 +614,7 @@ declare const callbackSSO: (options?: SSOOptions) => better_call0.StrictEndpoint
588
614
  metadata: {
589
615
  isAction: boolean;
590
616
  openapi: {
617
+ operationId: string;
591
618
  summary: string;
592
619
  description: string;
593
620
  responses: {
@@ -609,6 +636,7 @@ declare const callbackSSOSAML: (options?: SSOOptions) => better_call0.StrictEndp
609
636
  metadata: {
610
637
  isAction: boolean;
611
638
  openapi: {
639
+ operationId: string;
612
640
  summary: string;
613
641
  description: string;
614
642
  responses: {
@@ -639,6 +667,7 @@ declare const acsEndpoint: (options?: SSOOptions) => better_call0.StrictEndpoint
639
667
  metadata: {
640
668
  isAction: boolean;
641
669
  openapi: {
670
+ operationId: string;
642
671
  summary: string;
643
672
  description: string;
644
673
  responses: {
@@ -666,4 +695,4 @@ declare function sso<O extends SSOOptions>(options?: O | undefined): {
666
695
  endpoints: SSOEndpoints;
667
696
  };
668
697
  //#endregion
669
- export { SSOOptions as i, OIDCConfig as n, SAMLConfig as r, sso as t };
698
+ export { SSOProvider as a, SSOOptions as i, OIDCConfig as n, SAMLConfig as r, sso as t };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as SSOOptions, n as OIDCConfig, r as SAMLConfig, t as sso } from "./index-Ba2niv2R.mjs";
2
- export { OIDCConfig, SAMLConfig, SSOOptions, sso };
1
+ import { a as SSOProvider, i as SSOOptions, n as OIDCConfig, r as SAMLConfig, t as sso } from "./index-DOws6HlV.mjs";
2
+ export { OIDCConfig, SAMLConfig, SSOOptions, SSOProvider, sso };