UNPKG

opds-web-client

Version:
13 lines (12 loc) 558 B
import { AuthFormProps, AuthButtonProps } from "./components/AuthProviderSelectionForm"; import { AuthMethod, AuthCredentials } from "./interfaces"; interface AuthPlugin { type: string; lookForCredentials: () => { credentials?: AuthCredentials; error?: string; } | void; formComponent: new (props: AuthFormProps<AuthMethod>) => __React.Component<AuthFormProps<AuthMethod>, any>; buttonComponent: new (props: AuthButtonProps<AuthMethod>) => __React.Component<AuthButtonProps<AuthMethod>, any>; } export default AuthPlugin;