@web3auth/no-modal
Version:
Multi chain wallet aggregator for web3Auth
10 lines (9 loc) • 644 B
TypeScript
import { CitadelLinkAccountPayload, LinkAccountResult, UnlinkAccountPayload, UnlinkAccountResult } from "./interfaces";
/**
* Send both identity proofs to the Citadel account-linking endpoint and
* return a normalized result.
*
* Throws AccountLinkingError when the server returns an error or the request itself fails.
*/
export declare function makeAccountLinkingRequest(authServerUrl: string, accessToken: string, payload: CitadelLinkAccountPayload): Promise<LinkAccountResult>;
export declare function makeAccountUnlinkingRequest(authServerUrl: string, accessToken: string, payload: UnlinkAccountPayload): Promise<UnlinkAccountResult>;