@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
48 lines (47 loc) • 1.93 kB
TypeScript
import { SsoAuthClient } from './sso-auth-client';
export type UpdateSsoProviderParams = NonNullable<Parameters<SsoAuthClient["sso"]["updateProvider"]>[0]>;
export declare function updateSsoProviderOptions(authClient: SsoAuthClient, userId?: string): {
mutationKey: readonly ["auth", "sso", "update"];
mutationFn: (params: UpdateSsoProviderParams) => Promise<{
providerId: string;
type: string;
issuer: string;
domain: string;
organizationId: string | null;
domainVerified: boolean;
oidcConfig: {
discoveryEndpoint: string;
clientIdLastFour: string;
pkce: boolean;
authorizationEndpoint: string | undefined;
tokenEndpoint: string | undefined;
userInfoEndpoint: string | undefined;
jwksEndpoint: string | undefined;
scopes: string[] | undefined;
tokenEndpointAuthentication: "client_secret_post" | "client_secret_basic" | "private_key_jwt" | undefined;
} | undefined;
samlConfig: {
entryPoint: string;
callbackUrl: string | undefined;
idpInitiatedCallbackUrl: string | undefined;
audience: string | undefined;
wantAssertionsSigned: boolean | undefined;
authnRequestsSigned: boolean | undefined;
identifierFormat: string | undefined;
signatureAlgorithm: string | undefined;
digestAlgorithm: string | undefined;
certificate: ({
fingerprintSha256: string;
notBefore: string;
notAfter: string;
publicKeyAlgorithm: string;
} | {
error: string;
})[] | undefined;
} | undefined;
spMetadataUrl: string;
}>;
meta: {
awaits: (readonly ["auth", "sso", string | null, "providers"])[];
};
};