oak-general-business/es/components/login/oauth/authorize/index.d.ts

20 lines
758 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { EntityDict } from '../../../../oak-app-domain';
import { ReactComponentProps } from 'oak-frontend-base';
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/base-app-domain';
/**
* OAuth 授权页面组件
*/
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
/**
* 如果用户未登录调用此回调函数期望下一次重新进入该页面时用户已经登录并且携带相应的 OAuth 参数
*/
onUnLogin: (params: {
response_type: string;
client_id: string;
redirect_uri: string;
scope: string;
state: string;
}) => void;
}>) => React.ReactElement;
export default _default;