/phantom-connect:add-social-loginfrom phantom-connect
Configures Google and Apple social login using Phantom Connect SDK to enable embedded wallet creation. Guides through Phantom Portal registration, SDK setup for React, Browser, and React Native, and session persistence.
Ships in phantom-connect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
appId.You must have a valid appId for social login to work.
import { PhantomProvider } from "@phantom/react-sdk";
function App() {
return (
<PhantomProvider
config={{
appId: "your-app-id-from-phantom-portal",
providers: ["google", "apple"],
addressTypes: ["solana"],
authOptions: {
redirectUrl: "https://your-app.com/auth/callback",
},
}}
>
<YourApp />
</PhantomProvider>
);
}
import { BrowserSDK, AddressType } from "@phantom/browser-sdk";
const sdk = new BrowserSDK({
appId: "your-app-id-from-phantom-portal",
providers: ["google", "apple"],
addressTypes: [AddressType.Solana],
authOptions: {
redirectUrl: "https://your-app.com/auth/callback",
},
});
import "react-native-get-random-values";
import { PhantomProvider } from "@phantom/react-native-sdk";
export default function App() {
return (
<PhantomProvider
config={{
appId: "your-app-id-from-phantom-portal",
providers: ["google", "apple"],
addressTypes: ["solana"],
scheme: "your-app-scheme",
redirectUrl: "your-app-scheme://auth/callback",
}}
>
<YourApp />
</PhantomProvider>
);
}
The ConnectButton component automatically presents social login options when providers are configured:
import { ConnectButton } from "@phantom/react-sdk";
function LoginPage() {
return (
<div>
<h1>Welcome</h1>
<p>Sign in with your Google or Apple account to get started.</p>
<ConnectButton />
</div>
);
}
Social login sessions persist for 7 days from the last authentication. Handle re-authentication gracefully:
import { useConnect } from "@phantom/react-sdk";
function SessionGuard({ children }: { children: React.ReactNode }) {
const { isConnected, connect } = useConnect();
if (!isConnected) {
return (
<div>
<p>Your session has expired. Please sign in again.</p>
<button onClick={() => connect()}>Reconnect</button>
</div>
);
}
return <>{children}</>;
}
appId is required — social login will not work without a valid app ID from Phantom Portal.providers accepts "google" and "apple" — these are the supported social login methods.redirectUrl in authOptions must be whitelisted in your Phantom Portal app settings.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
8 skills in this plugin
/phantom-connectBuild wallet-connected applications with the Phantom Connect SDK for Solana. Use when integrating Phantom wallets into React, React Native, or vanilla JS/TS apps — including wallet connection, social login (Google/Apple), transaction signing, message signing, token-gated access, crypto payments, and NFT minting. Covers @phantom/react-sdk, @phantom/react-native-sdk, and @phantom/browser-sdk.
/phantom-wallet-mcpExecute wallet operations through the Phantom MCP server — get addresses, sign transactions, transfer tokens, buy tokens, and sign messages across Solana, Ethereum, Bitcoin, and Sui/send-sol-transactionBuild and send SOL transfers with Phantom Connect SDK, including transaction construction, signing, and verification/setup-browser-appScaffold a vanilla JS/TS app with Phantom Browser SDK for wallet integration, without any framework dependency/setup-react-appScaffold a React app with Phantom Connect SDK for wallet integration, including social login and Solana support/setup-react-native-appScaffold a React Native (Expo) app with Phantom React Native SDK for mobile wallet integration, including polyfills and deep linkingClaude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md", mcpServers: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.