UNPKG

@accounter/server

Version:
13 lines (12 loc) 475 B
import { TenantAwareDBClient } from '../../app-providers/tenant-db-client.js'; import { AuthContextProvider } from './auth-context.provider.js'; export declare class SuperAdminProvider { private db; private authContextProvider; constructor(db: TenantAwareDBClient, authContextProvider: AuthContextProvider); isSuperAdmin(auth0UserId: string): Promise<boolean>; requireSuperAdmin(): Promise<{ userId: string; auth0UserId: string; }>; }