UNPKG

@heymarco/next-auth

Version:

A complete authentication solution for web applications.

16 lines (15 loc) 1.33 kB
import { default as React } from 'react'; import type { BuiltInProviderType } from '@auth/core/providers'; import { GlobalStackableProps } from '@reusable-ui/core'; import { GenericProps, ButtonComponentProps, ModalExpandedChangeEvent, ModalBaseProps } from '@reusable-ui/components'; import { FieldUsernameOrEmailProps } from './FieldUsernameOrEmail.js'; import { FieldPasswordProps } from './FieldPassword.js'; export interface TabSignInProps extends Omit<FieldUsernameOrEmailProps, 'isActiveSection' | 'isActionApplied'>, Omit<FieldPasswordProps, 'isActiveSection' | 'isActionApplied' | 'isPasswordEntry'> { providers?: BuiltInProviderType[]; signInTitleComponent?: React.ReactComponentElement<any, Pick<React.HTMLAttributes<Element>, 'className'>>; signInButtonComponent?: ButtonComponentProps['buttonComponent']; signInWithButtonComponent?: ButtonComponentProps['buttonComponent'] | ((oAuthProvider: BuiltInProviderType) => Required<ButtonComponentProps>['buttonComponent']); alternateSignInSeparatorComponent?: React.ReactComponentElement<any, GenericProps<Element>>; emailValidationDialogComponent?: React.ReactComponentElement<any, (ModalBaseProps<Element, ModalExpandedChangeEvent<any>> & GlobalStackableProps)> | null; } export declare const TabSignIn: (props: TabSignInProps) => React.JSX.Element;