based-auth
Version:
A Next.js/Node.js authentication and wallet API kit for Ethereum and Solana, with utilities for serialization and contract interaction, designed for serverless and API route usage.
14 lines (13 loc) • 859 B
TypeScript
declare const authConfig: import('next-auth').NextAuthResult;
export declare const handlers: {
POST: (req: import('next/server').NextRequest) => Promise<Response>;
GET: (req: import('next/server').NextRequest) => Promise<Response>;
}, signIn: <P extends import('@auth/core/providers').ProviderId, R extends boolean = true>(provider?: P | undefined, options?: FormData | ({
redirectTo?: string | undefined;
redirect?: R | undefined;
} & Record<string, any>) | undefined, authorizationParams?: string | Record<string, string> | URLSearchParams | string[][] | undefined) => Promise<R extends false ? any : never>, signOut: <R extends boolean = true>(options?: {
redirectTo?: string | undefined;
redirect?: R | undefined;
} | undefined) => Promise<R extends false ? any : never>;
export declare const auth: any;
export default authConfig;