@accounter/server
Version:
Accounter GraphQL server
14 lines (13 loc) • 569 B
TypeScript
import type { RawAuth } from '../../../plugins/auth-plugin-v2.js';
import type { AuthContext } from '../../../shared/types/auth.js';
import type { Environment } from '../../../shared/types/index.js';
import { TenantAwareDBClient } from '../../app-providers/tenant-db-client.js';
export declare class AuthContextV2Provider {
private rawAuth;
private db;
private env;
constructor(rawAuth: RawAuth, db: TenantAwareDBClient, env: Environment);
getAuthContext(): Promise<AuthContext | null>;
private handleJwtAuth;
private mapAuth0UserToLocal;
}