UNPKG

440 BTypeScriptView Raw
1import { IUserEntity } from 'bf-types';
2import { NexusConfig, Nullable } from '../common';
3import { ClientAuth, System } from './Types';
4export interface Nexus {
5 getUrl(): string;
6 getLoginUrl(returnUrl?: string): string;
7 getUser(): IUserEntity;
8 disconnect(): void;
9 reconnect(): Promise<Nullable<IUserEntity>>;
10}
11export default function nexus(system: System, config: NexusConfig, clientAuth: ClientAuth): Promise<Nexus>;