@web3auth/no-modal
Version:
Multi chain wallet aggregator for web3Auth
13 lines (10 loc) • 338 B
JavaScript
import { inject, ref } from 'vue';
import { SOLANA_CLIENT_KEY } from '../constants.js';
/**
* Injects the Solana Framework Kit client when inside SolanaProvider and Web3Auth is connected on Solana.
* Otherwise returns null.
*/
function useSolanaClient() {
return inject(SOLANA_CLIENT_KEY, ref(null));
}
export { useSolanaClient };