UNPKG

@teamsight/flight

Version:

Lambda life cycles

17 lines (16 loc) 730 B
import { ICustomAuthorizer } from "../types"; export interface IAuthIt { member(orgId: string, auth: ICustomAuthorizer): void; owner(orgId: string, auth: ICustomAuthorizer): void; ownerOrUser(orgId: string, userId: string, auth: ICustomAuthorizer): void; isServer(auth: ICustomAuthorizer): boolean; } export declare class AuthIt implements IAuthIt { static process(token: string): Promise<ICustomAuthorizer>; private static secrets; member(orgId: string, auth: ICustomAuthorizer): void; owner(orgId: string, auth: ICustomAuthorizer): void; ownerOrUser(orgId: string, userId: string, auth: ICustomAuthorizer): void; isServer(auth: ICustomAuthorizer): boolean; private checkAuthExists; }