UNPKG

casdoor-react-sdk

Version:
19 lines (18 loc) 591 B
import * as React from "react"; import Sdk from "casdoor-js-sdk"; export interface AuthCallbackProps { sdk: Sdk; serverUrl: string; saveTokenFromResponse?: (res: Response) => void; isGetTokenSuccessful: (res: Response) => boolean; } export interface AuthCallbackState { message: null | string; } export declare class AuthCallback extends React.Component<AuthCallbackProps, AuthCallbackState> { UNSAFE_componentWillMount(): void; signin: () => void; sendSuccessfulLoginMessage: () => void; sendLoginFailureMessage: () => void; render(): JSX.Element; }