UNPKG

supertokens-auth-react

Version:

ReactJS SDK that provides login functionality with SuperTokens.

38 lines (37 loc) 933 B
import type { FC } from "react"; export declare type ProviderConfig = { id: string; name?: string; getRedirectURL?: (id: string) => string; buttonComponent?: BuiltInProviderConfig["buttonComponent"]; }; export declare type BuiltInProviderConfig = { id?: string; name?: string; buttonComponent?: | FC<{ name: string; }> | { new (props: { name: string }): React.Component<any, any>; } | JSX.Element; getRedirectURL?: (id: string) => string; }; export declare type CustomProviderConfig = { id: string; name?: string; /** * Provider Logo. */ logo?: JSX.Element; buttonComponent?: | FC<{ name: string; }> | { new (props: { name: string }): React.Component<any, any>; } | JSX.Element; getRedirectURL?: (id: string) => string; };