UNPKG

@hypernetlabs/hypernet-id-web-integration

Version:

Web integration package for Hypernet.ID. Provides basic access to user identity status and facilitates onboarding workflows.

14 lines 863 B
import { ReferralLinkId, IdentityToken, MintedIdentityToken } from "@hypernetlabs/hypernet-id-objects"; import { UUID, EthereumAccountAddress, ChainId, AjaxError } from "@hypernetlabs/objects"; import { IAjaxUtils } from "@hypernetlabs/utils"; import { ResultAsync } from "neverthrow"; import { IHypernetID } from "./IHypernetID"; export declare class HypernetID implements IHypernetID { protected customerId: UUID; protected ajaxUtils: IAjaxUtils; constructor(customerId: UUID); getIdentityTokenForAccount(accountAddress: EthereumAccountAddress): ResultAsync<IdentityToken, AjaxError>; getIdentityTokenForAccountOnChain(accountAddress: EthereumAccountAddress, chainId: ChainId): ResultAsync<MintedIdentityToken | null, AjaxError>; getRedirectUrl(linkId: ReferralLinkId): ResultAsync<URL, never>; } //# sourceMappingURL=HypernetID.d.ts.map