UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

24 lines (23 loc) 1.21 kB
import { ProviderEnum } from '@dynamic-labs/sdk-api-core'; import { SocialAccountInformation } from '@dynamic-labs/types'; type ConnectSocialProps = { /** * Overrides the redirectUrl provided by DynamicContextProvider */ redirectUrl?: string; /** * Whether to show the widget after a connection is made */ showWidgetAfterConnection?: boolean; }; export declare const useSocialAccounts: () => { readonly error: import("@dynamic-labs/types").SocialOAuthError | undefined; readonly getLinkedAccountInformation: (provider: ProviderEnum, verifiedCredentialId?: string) => SocialAccountInformation | undefined; readonly getLinkedAccounts: (provider: ProviderEnum) => SocialAccountInformation[]; readonly isLinked: (provider: ProviderEnum) => boolean; readonly isProcessing: boolean; readonly linkSocialAccount: (provider: ProviderEnum, { redirectUrl, showWidgetAfterConnection }?: ConnectSocialProps) => Promise<void>; readonly signInWithSocialAccount: (provider: ProviderEnum, { redirectUrl }?: ConnectSocialProps) => Promise<void>; readonly unlinkSocialAccount: (provider: ProviderEnum, verifiedCredentialId?: string) => Promise<void>; }; export {};