@better-auth/sso 1.5.0-beta.8 → 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/dist/index.d.mts CHANGED
@@ -1,2 +1,56 @@
1
- import { A as DataEncryptionAlgorithm, C as TimestampValidationOptions, D as SSOOptions, E as SAMLConfig, M as DigestAlgorithm, N as KeyEncryptionAlgorithm, O as SSOProvider, P as SignatureAlgorithm, S as SAMLConditions, T as OIDCConfig, _ as REQUIRED_DISCOVERY_FIELDS, a as fetchDiscoveryDocument, b as DEFAULT_MAX_SAML_METADATA_SIZE, c as normalizeUrl, d as validateDiscoveryUrl, f as DiscoverOIDCConfigParams, g as OIDCDiscoveryDocument, h as HydratedOIDCConfig, i as discoverOIDCConfig, j as DeprecatedAlgorithmBehavior, k as AlgorithmValidationOptions, l as selectTokenEndpointAuthMethod, m as DiscoveryErrorCode, n as sso, o as needsRuntimeDiscovery, p as DiscoveryError, r as computeDiscoveryUrl, s as normalizeDiscoveryUrls, t as SSOPlugin, u as validateDiscoveryDocument, v as RequiredDiscoveryField, w as validateSAMLTimestamp, x as DEFAULT_MAX_SAML_RESPONSE_SIZE, y as DEFAULT_CLOCK_SKEW_MS } from "./index-BT0wtuq1.mjs";
2
- export { AlgorithmValidationOptions, DEFAULT_CLOCK_SKEW_MS, DEFAULT_MAX_SAML_METADATA_SIZE, DEFAULT_MAX_SAML_RESPONSE_SIZE, DataEncryptionAlgorithm, DeprecatedAlgorithmBehavior, DigestAlgorithm, DiscoverOIDCConfigParams, DiscoveryError, DiscoveryErrorCode, HydratedOIDCConfig, KeyEncryptionAlgorithm, OIDCConfig, OIDCDiscoveryDocument, REQUIRED_DISCOVERY_FIELDS, RequiredDiscoveryField, SAMLConditions, SAMLConfig, SSOOptions, SSOPlugin, SSOProvider, SignatureAlgorithm, TimestampValidationOptions, computeDiscoveryUrl, discoverOIDCConfig, fetchDiscoveryDocument, needsRuntimeDiscovery, normalizeDiscoveryUrls, normalizeUrl, selectTokenEndpointAuthMethod, sso, validateDiscoveryDocument, validateDiscoveryUrl, validateSAMLTimestamp };
1
+ import { A as spMetadata, B as SSOOptions, C as callbackSSO, D as registerSSOProvider, E as initiateSLO, F as updateSSOProvider, G as DigestAlgorithm, H as AlgorithmValidationOptions, I as requestDomainVerification, K as KeyEncryptionAlgorithm, L as verifyDomain, M as deleteSSOProvider, N as getSSOProvider, O as signInSSO, P as listSSOProviders, R as OIDCConfig, S as acsEndpoint, T as callbackSSOShared, U as DataEncryptionAlgorithm, V as SSOProvider, W as DeprecatedAlgorithmBehavior, _ as DEFAULT_CLOCK_SKEW_MS, a as normalizeDiscoveryUrls, b as SAMLConditions, c as validateDiscoveryDocument, d as DiscoveryError, f as DiscoveryErrorCode, g as RequiredDiscoveryField, h as REQUIRED_DISCOVERY_FIELDS, i as needsRuntimeDiscovery, j as validateSAMLTimestamp, k as sloEndpoint, l as validateDiscoveryUrl, m as OIDCDiscoveryDocument, n as discoverOIDCConfig, o as normalizeUrl, p as HydratedOIDCConfig, q as SignatureAlgorithm, r as fetchDiscoveryDocument, s as selectTokenEndpointAuthMethod, t as computeDiscoveryUrl, u as DiscoverOIDCConfigParams, v as DEFAULT_MAX_SAML_METADATA_SIZE, w as callbackSSOSAML, x as TimestampValidationOptions, y as DEFAULT_MAX_SAML_RESPONSE_SIZE, z as SAMLConfig } from "./index-BQp9TZiG.mjs";
2
+ import { BetterAuthPlugin } from "better-auth";
3
+
4
+ //#region src/index.d.ts
5
+ declare module "@better-auth/core" {
6
+ interface BetterAuthPluginRegistry<AuthOptions, Options> {
7
+ sso: {
8
+ creator: typeof sso;
9
+ };
10
+ }
11
+ }
12
+ type DomainVerificationEndpoints = {
13
+ requestDomainVerification: ReturnType<typeof requestDomainVerification>;
14
+ verifyDomain: ReturnType<typeof verifyDomain>;
15
+ };
16
+ type SSOEndpoints<O extends SSOOptions> = {
17
+ spMetadata: ReturnType<typeof spMetadata>;
18
+ registerSSOProvider: ReturnType<typeof registerSSOProvider<O>>;
19
+ signInSSO: ReturnType<typeof signInSSO>;
20
+ callbackSSO: ReturnType<typeof callbackSSO>;
21
+ callbackSSOShared: ReturnType<typeof callbackSSOShared>;
22
+ callbackSSOSAML: ReturnType<typeof callbackSSOSAML>;
23
+ acsEndpoint: ReturnType<typeof acsEndpoint>;
24
+ sloEndpoint: ReturnType<typeof sloEndpoint>;
25
+ initiateSLO: ReturnType<typeof initiateSLO>;
26
+ listSSOProviders: ReturnType<typeof listSSOProviders>;
27
+ getSSOProvider: ReturnType<typeof getSSOProvider>;
28
+ updateSSOProvider: ReturnType<typeof updateSSOProvider>;
29
+ deleteSSOProvider: ReturnType<typeof deleteSSOProvider>;
30
+ };
31
+ type SSOPlugin<O extends SSOOptions> = {
32
+ id: "sso";
33
+ endpoints: SSOEndpoints<O> & (O extends {
34
+ domainVerification: {
35
+ enabled: true;
36
+ };
37
+ } ? DomainVerificationEndpoints : {});
38
+ };
39
+ declare function sso<O extends SSOOptions & {
40
+ domainVerification?: {
41
+ enabled: true;
42
+ };
43
+ }>(options?: O | undefined): {
44
+ id: "sso";
45
+ endpoints: SSOEndpoints<O> & DomainVerificationEndpoints;
46
+ schema: NonNullable<BetterAuthPlugin["schema"]>;
47
+ options: O;
48
+ };
49
+ declare function sso<O extends SSOOptions>(options?: O | undefined): {
50
+ id: "sso";
51
+ endpoints: SSOEndpoints<O>;
52
+ options: O;
53
+ };
54
+ //#endregion
55
+ export { type AlgorithmValidationOptions, DEFAULT_CLOCK_SKEW_MS, DEFAULT_MAX_SAML_METADATA_SIZE, DEFAULT_MAX_SAML_RESPONSE_SIZE, DataEncryptionAlgorithm, type DeprecatedAlgorithmBehavior, DigestAlgorithm, type DiscoverOIDCConfigParams, DiscoveryError, type DiscoveryErrorCode, type HydratedOIDCConfig, KeyEncryptionAlgorithm, type OIDCConfig, type OIDCDiscoveryDocument, REQUIRED_DISCOVERY_FIELDS, type RequiredDiscoveryField, type SAMLConditions, type SAMLConfig, type SSOOptions, SSOPlugin, type SSOProvider, SignatureAlgorithm, type TimestampValidationOptions, computeDiscoveryUrl, discoverOIDCConfig, fetchDiscoveryDocument, needsRuntimeDiscovery, normalizeDiscoveryUrls, normalizeUrl, selectTokenEndpointAuthMethod, sso, validateDiscoveryDocument, validateDiscoveryUrl, validateSAMLTimestamp };
56
+ //# sourceMappingURL=index.d.mts.map