@pooflabs/web 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,9 @@ import type { EVMTransaction, SolTransaction, TransactionResult, User, AuthProvi
2
2
  import { Transaction, VersionedTransaction } from '@solana/web3.js';
3
3
  export interface PhantomWalletConfig {
4
4
  appId?: string;
5
+ providers?: Array<'injected' | 'google' | 'apple' | 'deeplink'>;
6
+ redirectUrl?: string;
5
7
  autoConnect?: boolean;
6
- providerType?: 'injected' | 'embedded';
7
8
  }
8
9
  export declare class PhantomWalletProvider implements AuthProvider {
9
10
  private initialized;
@@ -13,13 +14,18 @@ export declare class PhantomWalletProvider implements AuthProvider {
13
14
  constructor(networkUrl?: string | null, config?: PhantomWalletConfig);
14
15
  private init;
15
16
  private getSDK;
17
+ /**
18
+ * Check if the injected Phantom provider is available
19
+ */
20
+ private hasInjectedProvider;
16
21
  /**
17
22
  * Get the injected Phantom provider for direct wallet operations
18
23
  */
19
24
  private getInjectedProvider;
20
25
  /**
21
26
  * Ensures the wallet is connected and returns the SDK
22
- * This method will attempt to connect if not already connected
27
+ * This method will attempt to connect if not already connected.
28
+ * If session doesn't match the connected wallet, it will re-login.
23
29
  */
24
30
  private ensureConnected;
25
31
  login(): Promise<User | null>;