@better-auth/sso 1.3.4 → 1.3.5-beta.3

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,5 +1,5 @@
1
1
 
2
- > @better-auth/sso@1.3.4 build /home/runner/work/better-auth/better-auth/packages/sso
2
+ > @better-auth/sso@1.3.5-beta.3 build /home/runner/work/better-auth/better-auth/packages/sso
3
3
  > unbuild
4
4
 
5
5
  [info] Automatically detected entries: src/index, src/client [esm] [cjs] [dts]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@better-auth/sso",
3
3
  "author": "Bereket Engida",
4
- "version": "1.3.4",
4
+ "version": "1.3.5-beta.3",
5
5
  "main": "dist/index.cjs",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -43,20 +43,22 @@
43
43
  ]
44
44
  }
45
45
  },
46
+ "peerDependencies": {
47
+ "zod": "3.25.0 || ^4.0.0"
48
+ },
46
49
  "dependencies": {
47
50
  "@better-fetch/fetch": "^1.1.18",
48
51
  "fast-xml-parser": "^5.2.5",
49
52
  "jose": "^5.9.6",
50
53
  "oauth2-mock-server": "^7.2.0",
51
54
  "samlify": "^2.10.0",
52
- "zod": "^3.24.1",
53
- "better-auth": "^1.3.4"
55
+ "better-auth": "^1.3.5-beta.3"
54
56
  },
55
57
  "devDependencies": {
56
58
  "@types/body-parser": "^1.19.6",
57
59
  "@types/express": "^5.0.3",
58
- "better-call": "^1.0.12",
59
- "vitest": "^1.6.0"
60
+ "better-call": "^1.0.13",
61
+ "zod": "^4.0.0"
60
62
  },
61
63
  "scripts": {
62
64
  "test": "vitest",
package/src/index.ts CHANGED
@@ -563,7 +563,7 @@ export const sso = (options?: SSOOptions) => {
563
563
  const limit =
564
564
  typeof options?.providersLimit === "function"
565
565
  ? await options.providersLimit(user)
566
- : options?.providersLimit ?? 10;
566
+ : (options?.providersLimit ?? 10);
567
567
 
568
568
  if (!limit) {
569
569
  throw new APIError("FORBIDDEN", {