@better-auth/sso 1.4.0-beta.16 → 1.4.0-beta.17

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,17 @@
1
1
 
2
- > @better-auth/sso@1.4.0-beta.16 build /home/runner/work/better-auth/better-auth/packages/sso
2
+ > @better-auth/sso@1.4.0-beta.17 build /home/runner/work/better-auth/better-auth/packages/sso
3
3
  > tsdown
4
4
 
5
- ℹ tsdown v0.15.11 powered by rolldown v1.0.0-beta.45
5
+ ℹ tsdown v0.16.0 powered by rolldown v1.0.0-beta.46
6
6
  ℹ Using tsdown config: /home/runner/work/better-auth/better-auth/packages/sso/tsdown.config.ts
7
7
  ℹ entry: src/client.ts, src/index.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/client.js  0.18 kB │ gzip: 0.16 kB
11
- ℹ dist/index.js  0.06 kB │ gzip: 0.07 kB
12
- ℹ dist/src-BrnaMP1W.js 49.60 kB │ gzip: 8.54 kB
13
- ℹ dist/index.d.ts  0.24 kB │ gzip: 0.16 kB
14
- ℹ dist/client.d.ts  0.21 kB │ gzip: 0.18 kB
15
- ℹ dist/index-U95aRHHN.d.ts 22.51 kB │ gzip: 3.39 kB
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-D0TWWO55.mjs 49.60 kB │ gzip: 8.54 kB
13
+ ℹ dist/index.d.mts  0.24 kB │ gzip: 0.16 kB
14
+ ℹ dist/client.d.mts  0.21 kB │ gzip: 0.18 kB
15
+ ℹ dist/index-D8XmWYZn.d.mts 22.51 kB │ gzip: 3.39 kB
16
16
  ℹ 6 files, total: 72.81 kB
17
- ✔ Build complete in 11363ms
17
+ ✔ Build complete in 11481ms
@@ -1,4 +1,4 @@
1
- import { s as sso } from "./index-U95aRHHN.js";
1
+ import { s as sso } from "./index-D8XmWYZn.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  declare const ssoClient: () => {
@@ -1,4 +1,4 @@
1
- import "./src-BrnaMP1W.js";
1
+ import "./src-D0TWWO55.mjs";
2
2
 
3
3
  //#region src/client.ts
4
4
  const ssoClient = () => {
@@ -199,8 +199,8 @@ declare const sso: (options?: SSOOptions | undefined) => {
199
199
  query: z.ZodObject<{
200
200
  providerId: z.ZodString;
201
201
  format: z.ZodDefault<z.ZodEnum<{
202
- json: "json";
203
202
  xml: "xml";
203
+ json: "json";
204
204
  }>>;
205
205
  }, z.core.$strip>;
206
206
  metadata: {
@@ -1,2 +1,2 @@
1
- import { a as SSOOptions, i as SAMLMapping, n as OIDCMapping, o as SSOProvider, r as SAMLConfig, s as sso, t as OIDCConfig } from "./index-U95aRHHN.js";
1
+ import { a as SSOOptions, i as SAMLMapping, n as OIDCMapping, o as SSOProvider, r as SAMLConfig, s as sso, t as OIDCConfig } from "./index-D8XmWYZn.mjs";
2
2
  export { OIDCConfig, OIDCMapping, SAMLConfig, SAMLMapping, SSOOptions, SSOProvider, sso };
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { t as sso } from "./src-D0TWWO55.mjs";
2
+
3
+ export { sso };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@better-auth/sso",
3
3
  "author": "Bereket Engida",
4
- "version": "1.4.0-beta.16",
4
+ "version": "1.4.0-beta.17",
5
5
  "type": "module",
6
- "main": "dist/index.js",
6
+ "main": "dist/index.mjs",
7
7
  "homepage": "https://www.better-auth.com/docs/plugins/sso",
8
8
  "repository": {
9
9
  "type": "git",
@@ -26,27 +26,27 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "module": "dist/index.js",
29
+ "module": "dist/index.mjs",
30
30
  "description": "SSO plugin for Better Auth",
31
31
  "exports": {
32
32
  ".": {
33
33
  "better-auth-dev-source": "./src/index.ts",
34
- "types": "./dist/index.d.ts",
35
- "default": "./dist/index.js"
34
+ "types": "./dist/index.d.mts",
35
+ "default": "./dist/index.mjs"
36
36
  },
37
37
  "./client": {
38
38
  "better-auth-dev-source": "./src/client.ts",
39
- "types": "./dist/client.d.ts",
40
- "default": "./dist/client.js"
39
+ "types": "./dist/client.d.mts",
40
+ "default": "./dist/client.mjs"
41
41
  }
42
42
  },
43
43
  "typesVersions": {
44
44
  "*": {
45
45
  "*": [
46
- "./dist/index.d.ts"
46
+ "./dist/index.d.mts"
47
47
  ],
48
48
  "client": [
49
- "./dist/client.d.ts"
49
+ "./dist/client.d.mts"
50
50
  ]
51
51
  }
52
52
  },
@@ -60,15 +60,15 @@
60
60
  "devDependencies": {
61
61
  "@types/body-parser": "^1.19.6",
62
62
  "@types/express": "^5.0.5",
63
- "better-call": "1.0.24",
63
+ "better-call": "1.0.26",
64
64
  "body-parser": "^2.2.0",
65
65
  "express": "^5.1.0",
66
66
  "oauth2-mock-server": "^7.2.1",
67
- "tsdown": "^0.15.11",
68
- "better-auth": "^1.4.0-beta.16"
67
+ "tsdown": "^0.16.0",
68
+ "better-auth": "^1.4.0-beta.17"
69
69
  },
70
70
  "peerDependencies": {
71
- "better-auth": "1.4.0-beta.16"
71
+ "better-auth": "1.4.0-beta.17"
72
72
  },
73
73
  "scripts": {
74
74
  "test": "vitest",
package/src/oidc.test.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { betterFetch } from "@better-fetch/fetch";
2
2
  import { createAuthClient } from "better-auth/client";
3
3
  import { organization } from "better-auth/plugins";
4
- import { getTestInstanceMemory as getTestInstance } from "better-auth/test";
4
+ import { getTestInstance } from "better-auth/test";
5
5
  import { OAuth2Server } from "oauth2-mock-server";
6
6
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
7
7
  import { sso } from ".";
package/src/saml.test.ts CHANGED
@@ -4,7 +4,7 @@ import { memoryAdapter } from "better-auth/adapters/memory";
4
4
  import { createAuthClient } from "better-auth/client";
5
5
  import { setCookieToHeader } from "better-auth/cookies";
6
6
  import { bearer } from "better-auth/plugins";
7
- import { getTestInstanceMemory } from "better-auth/test";
7
+ import { getTestInstance } from "better-auth/test";
8
8
  import bodyParser from "body-parser";
9
9
  import { randomUUID } from "crypto";
10
10
  import type {
@@ -926,7 +926,7 @@ describe("SAML SSO", async () => {
926
926
  });
927
927
 
928
928
  it("should not allow creating a provider if limit is set to 0", async () => {
929
- const { auth, signInWithTestUser } = await getTestInstanceMemory({
929
+ const { auth, signInWithTestUser } = await getTestInstance({
930
930
  plugins: [sso({ providersLimit: 0 })],
931
931
  });
932
932
  const { headers } = await signInWithTestUser();
@@ -957,7 +957,7 @@ describe("SAML SSO", async () => {
957
957
  });
958
958
 
959
959
  it("should not allow creating a provider if limit is reached", async () => {
960
- const { auth, signInWithTestUser } = await getTestInstanceMemory({
960
+ const { auth, signInWithTestUser } = await getTestInstance({
961
961
  plugins: [sso({ providersLimit: 1 })],
962
962
  });
963
963
  const { headers } = await signInWithTestUser();
@@ -1011,7 +1011,7 @@ describe("SAML SSO", async () => {
1011
1011
  });
1012
1012
 
1013
1013
  it("should not allow creating a provider if limit from function is reached", async () => {
1014
- const { auth, signInWithTestUser } = await getTestInstanceMemory({
1014
+ const { auth, signInWithTestUser } = await getTestInstance({
1015
1015
  plugins: [
1016
1016
  sso({
1017
1017
  providersLimit: async (user) => {
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- import { t as sso } from "./src-BrnaMP1W.js";
2
-
3
- export { sso };
File without changes