UNPKG

ic-auth

Version:

A simple to use, modular package for integrating Internet Computer authentication providers into your app.

13 lines (12 loc) 808 B
import { HttpAgent } from '@dfinity/agent'; import * as types from "./frontend/types"; import { InterfaceFactory } from '@dfinity/candid/lib/cjs/idl'; export { types as Types }; import { ActorSubclass, ActorMethod } from '@dfinity/agent'; export declare const HelloIDL: InterfaceFactory; export declare const StoicLogin: () => Promise<types.UserObject>; export declare const PlugLogin: (whitelist: string[]) => Promise<types.UserObject>; export declare const NFIDLogin: () => Promise<types.UserObject>; export declare const IdentityLogin: () => Promise<types.UserObject>; export declare const CreateActor: (agent: HttpAgent, idl: InterfaceFactory, canisterId: string) => Promise<ActorSubclass<Record<string, ActorMethod<unknown[], unknown>>>>; export declare const CreateAnonAgent: () => Promise<HttpAgent>;