@better-auth/sso 1.5.0-beta.9 → 1.5.0

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/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # Better Auth SSO Plugin
2
+
3
+ Single Sign-On plugin for [Better Auth](https://www.better-auth.com) — add SAML and OIDC enterprise SSO to your application.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @better-auth/sso
9
+ ```
10
+
11
+ ## Documentation
12
+
13
+ For full documentation, visit [better-auth.com/docs/plugins/sso](https://www.better-auth.com/docs/plugins/sso).
14
+
15
+ ## License
16
+
17
+ MIT
package/dist/client.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- import { t as SSOPlugin } from "./index-78tha8qZ.mjs";
1
+ import "./index-BQp9TZiG.mjs";
2
+ import { SSOPlugin } from "./index.mjs";
2
3
 
3
4
  //#region src/client.d.ts
4
5
  interface SSOClientOptions {
@@ -15,6 +16,11 @@ declare const ssoClient: <CO extends SSOClientOptions>(options?: CO | undefined)
15
16
  } ? true : false;
16
17
  };
17
18
  }>;
19
+ pathMethods: {
20
+ "/sso/providers": "GET";
21
+ "/sso/get-provider": "GET";
22
+ };
18
23
  };
19
24
  //#endregion
20
- export { ssoClient };
25
+ export { ssoClient };
26
+ //# sourceMappingURL=client.d.mts.map
package/dist/client.mjs CHANGED
@@ -2,9 +2,14 @@
2
2
  const ssoClient = (options) => {
3
3
  return {
4
4
  id: "sso-client",
5
- $InferServerPlugin: {}
5
+ $InferServerPlugin: {},
6
+ pathMethods: {
7
+ "/sso/providers": "GET",
8
+ "/sso/get-provider": "GET"
9
+ }
6
10
  };
7
11
  };
8
12
 
9
13
  //#endregion
10
- export { ssoClient };
14
+ export { ssoClient };
15
+ //# sourceMappingURL=client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.mjs","names":[],"sources":["../src/client.ts"],"sourcesContent":["import type { BetterAuthClientPlugin } from \"better-auth/client\";\nimport type { SSOPlugin } from \"./index\";\n\ninterface SSOClientOptions {\n\tdomainVerification?:\n\t\t| {\n\t\t\t\tenabled: boolean;\n\t\t }\n\t\t| undefined;\n}\n\nexport const ssoClient = <CO extends SSOClientOptions>(\n\toptions?: CO | undefined,\n) => {\n\treturn {\n\t\tid: \"sso-client\",\n\t\t$InferServerPlugin: {} as SSOPlugin<{\n\t\t\tdomainVerification: {\n\t\t\t\tenabled: CO[\"domainVerification\"] extends { enabled: true }\n\t\t\t\t\t? true\n\t\t\t\t\t: false;\n\t\t\t};\n\t\t}>,\n\t\tpathMethods: {\n\t\t\t\"/sso/providers\": \"GET\",\n\t\t\t\"/sso/get-provider\": \"GET\",\n\t\t},\n\t} satisfies BetterAuthClientPlugin;\n};\n"],"mappings":";AAWA,MAAa,aACZ,YACI;AACJ,QAAO;EACN,IAAI;EACJ,oBAAoB,EAAE;EAOtB,aAAa;GACZ,kBAAkB;GAClB,qBAAqB;GACrB;EACD"}