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.
32 lines (31 loc) • 1.15 kB
TypeScript
import { UserRole } from '../../../shared/src/types';
import { NetworkSymbols } from '../networks';
export declare function updateOrCreateUserProfile(provider: string, chainId: number, network: string, address: string, social: string, name: string, image: string, role: UserRole): Promise<import('../../../shared/src/models/UserProfile').IUserProfile & Required<{
_id: string;
}> & {
__v: number;
}>;
export declare function saveSocialUser(provider: string, social: string, name: string, image: string): Promise<{
_id: any;
users: import('../../../shared/src/models/UserProfile').IUser[];
provider: string;
chainId: number;
network: NetworkSymbols;
social: string;
address: string;
name: string;
image: string;
role: UserRole;
}>;
export declare function saveWalletUser(provider: string, chainId: number, network: string, address: string): Promise<{
_id: any;
users: import('../../../shared/src/models/UserProfile').IUser[];
provider: string;
chainId: number;
network: string;
social: string;
address: string;
name: string;
image: string;
role: UserRole;
}>;