UNPKG

@krowdy/kds-auth

Version:

React components that implement Google's Material Design.

43 lines (36 loc) 869 B
import React from 'react' type SocialNetworkProps = { clientId?: string; clientSecret?: string; redirectUri?: string; scope?: string; state?: string } type SocialProps = { google?: SocialNetworkProps; linkedin?: SocialNetworkProps; microsoft?: SocialNetworkProps; facebook?: SocialNetworkProps; } type LegalBase = { footerHTML?: String; urlPrivacyPolicy?: String; urlTermsAndConditions?: String; } export type AuthContextProps = { social?: SocialProps, stateContext?: any; storage?: string; baseUrl: string; urlLogin?: string; referrer?: string; clientSecret?: string; clientId?: string; loginWith?: string; withGoogle?: boolean, onError?: (error: any) => void; customLegalBase?: LegalBase; children?: React.ReactNode; }; declare var AuthContext: React.ComponentType<AuthContextProps>; export default AuthContext