UNPKG

open-collaboration-server

Version:

Open Collaboration Server implementation, part of the Open Collaboration Tools project

16 lines 577 B
import type { Express } from 'express'; import { AuthProvider, Event } from 'open-collaboration-protocol'; import { User } from '../types.js'; export type UserInfo = Omit<User, 'id'>; export interface AuthSuccessEvent { token: string; userInfo: UserInfo; } export declare const AuthEndpoint: unique symbol; export interface AuthEndpoint { shouldActivate(): boolean; onStart(app: Express, hostname: string, port: number): void; onDidAuthenticate: Event<AuthSuccessEvent>; getProtocolProvider(): AuthProvider; } //# sourceMappingURL=auth-endpoint.d.ts.map