UNPKG

@lygos/nestjs-better-auth

Version:
21 lines 589 B
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