@accounter/server
Version:
The test suite is split into three Vitest projects for efficiency and isolation:
11 lines (10 loc) • 353 B
TypeScript
import { ValidateUserFn } from '@envelop/generic-auth';
import type { Role } from '../__generated__/types.js';
export type UserType = {
username: string;
userId: string;
role?: Role;
};
export declare const authPlugin: () => import("@envelop/types").Plugin<{
validateUser: ValidateUserFn<UserType>;
} & Record<"currentUser", UserType>>;