@lygos/nestjs-better-auth
Version:
Better Auth for NestJS
21 lines • 589 B
TypeScript
import type { Auth } from "better-auth";
/**
* NestJS service that provides access to the Better Auth instance
* Use generics to support auth instances extended by plugins
*/
export declare class AuthService<T extends {
api: T["api"];
} = Auth> {
private readonly auth;
constructor(auth: T);
/**
* Returns the API endpoints provided by the auth instance
*/
get api(): T["api"];
/**
* Returns the complete auth instance
* Access this for plugin-specific functionality
*/
get instance(): T;
}
//# sourceMappingURL=auth-service.d.ts.map