solana-app-kit


solana-app-kit / components/wallet/EmbeddedWallet / default

Function: default()

default(props, deprecatedLegacyContext?): ReactNode

Defined in: src/components/wallet/EmbeddedWallet.tsx:53

A component that provides embedded wallet authentication functionality

Parameters

props

EmbeddedWalletAuthProps

deprecatedLegacyContext?

any

Deprecated

See

React Docs

Returns

ReactNode

Component

Description

EmbeddedWalletAuth is a component that handles wallet authentication through various providers (Google, Apple, Email) and manages the connection state. It provides a user interface for authentication and handles wallet connection callbacks.

Features:

  • Multiple authentication methods:
    • Google Sign-In
    • Apple Sign-In
    • Email Sign-In
  • Automatic wallet connection handling
  • Error handling and user feedback
  • Provider-specific wallet management

Example

<EmbeddedWalletAuth
  onWalletConnected={({provider, address}) => {
    console.log(`Connected with ${provider}: ${address}`);
  }}
  authMode="login"
/>