@altanlabs/auth
Version:
React authentication library built on top of @altanlabs/database
59 lines • 1.67 kB
TypeScript
/**
* Overrideable text labels for full i18n or branding control.
*/
interface SignInLabels {
heading: string;
subtitle: string;
googleButton: string;
orDivider: string;
emailLabel: string;
passwordLabel: string;
submitButton: string;
submitButtonLoading: string;
signupQuestion: string;
signupLink: string;
securedBy: string;
}
type PartialSignInLabels = Partial<SignInLabels>;
export interface SignInProps {
appearance?: {
theme?: "light" | "dark";
/**
* Advanced glass morphism / custom brand overrides
*/
customTheme?: Partial<{
background: string;
card: string;
text: string;
textMuted: string;
input: string;
button: string;
googleButton: string;
errorBg: string;
errorText: string;
errorIcon: string;
}>;
};
companyName?: string;
routing?: "hash" | "path";
path?: string;
signUpUrl: string;
forceRedirectUrl?: string;
fallbackRedirectUrl?: string;
signUpForceRedirectUrl?: string;
signUpFallbackRedirectUrl?: string;
initialValues?: {
emailAddress?: string;
password?: string;
};
transferable?: boolean;
waitlistUrl?: string;
withSignUp?: boolean;
/**
* Provide override labels to change text / i18n
*/
labels?: PartialSignInLabels;
}
export default function SignIn({ appearance, companyName, signUpUrl, routing, withSignUp, labels, ...props }: SignInProps): import("react/jsx-runtime").JSX.Element | null;
export {};
//# sourceMappingURL=SignIn.d.ts.map