@inertiapixel/nextjs-auth
Version:
Authentication system for Next.js. Supports credentials and social login, JWT token management, and lifecycle hooks — designed to integrate with nodejs-auth for full-stack MERN apps.
10 lines (9 loc) • 492 B
TypeScript
type Headers = Record<string, string>;
export declare class ApiClient {
post<TResponse, TRequest = unknown>(url: string, body: TRequest, headers?: Headers): Promise<TResponse>;
get<TResponse>(url: string, headers?: Headers): Promise<TResponse>;
put<TResponse, TRequest = unknown>(url: string, body: TRequest, headers?: Headers): Promise<TResponse>;
delete<TResponse>(url: string, headers?: Headers): Promise<TResponse>;
}
export declare const apiClient: ApiClient;
export {};