@rahulsolanki_ct/linkedin-login
Version:
Package for Linked In Log In feature using OAuth 2.0
19 lines (18 loc) • 502 B
TypeScript
/// <reference types="react" />
export interface useLinkedInType {
redirectUri: string;
clientId: string;
onSuccess: (code: string) => void;
onError?: ({ error, errorMessage, }: {
error: string;
errorMessage: string;
}) => void;
state?: string;
scope?: string;
closePopupMessage?: string;
}
export interface LinkedInType extends useLinkedInType {
children: ({ linkedInLogin }: {
linkedInLogin: any;
}) => JSX.Element;
}