react-sign-in-apple
Version:
Sign in with Apple component for react
28 lines (27 loc) • 741 B
TypeScript
/// <reference types="react" />
interface Props {
clientId: string;
redirectURI: string;
scope?: string;
state?: string;
responseType?: string | 'code' | 'id_token';
responseMode?: string | 'query' | 'fragment' | 'form_post';
nonce?: string;
usePopup?: boolean;
onSuccess?: Function;
onFailure?: Function;
mode?: string;
type?: string;
appearance?: {
color?: 'black' | 'white';
border?: boolean;
borderRadius?: number;
width?: number;
height?: number;
};
render?: (props: {
onClick: (event?: any) => void;
}) => JSX.Element;
}
export declare const AppleLogin: (props: Props) => JSX.Element;
export {};