@deephaven/auth-plugins
Version:
Deephaven Auth Plugins
20 lines • 817 B
TypeScript
import React from 'react';
import type { dh } from '@deephaven/jsapi-types';
export type AuthPluginBaseProps = {
/**
* The children to render after authentication is completed.
*/
children: React.ReactNode;
/**
* Retrieve the login options for logging in to the client
* @returns A promise for the login options
*/
getLoginOptions: () => dh.LoginCredentials | Promise<dh.LoginCredentials>;
};
/**
* Base AuthPlugin that gets passed a function for retrieving the login options, and then attempting to login with them.
* @param getLoginOptions Function that returns a promise for the login options
*/
declare function AuthPluginBase({ children, getLoginOptions, }: AuthPluginBaseProps): JSX.Element;
export default AuthPluginBase;
//# sourceMappingURL=AuthPluginBase.d.ts.map