Jupiter Mobile Adapter
The Jupiter Mobile Adapter allows you to integrate Jupiter Mobile login functionality into your app! By allowing Jupiter Mobile users to simply use the app to scan a QR code to login, they can utilize their wallets on Jupiter Mobile across any platform.
- Install @jup-ag/jup-mobile-adapter
- Use
useWrappedReownAdapter
(Prerequisite to create an app id on https://dashboard.reown.com/) - Add the
jupiterAdapter
within the wrapped adapter
import { WalletProvider } from '@solana/wallet-adapter-react';
import { useWrappedReownAdapter } from "@jup-ag/jup-mobile-adapter";
const WalletConnectionProvider: React.FC<PropsWithChildren> = ({
children,
}) => {
// Refer to https://reown.com/appkit
const { reownAdapter, jupiterAdapter } = useWrappedReownAdapter({
appKitOptions: {
metadata: {
name: "",
description: ``,
url: "<YOUR_DOMAIN>", // origin must match your domain & subdomain
icons: [
// add icons here
],
},
projectId: "<YOUR_PROJECT_ID>",
features: {
analytics: false,
socials: ["google", "x", "apple"],
email: false,
},
enableWallets: false,
},
});
const wallets = useMemo(
() => [
reownAdapter,
jupiterAdapter,
// add more wallets here
],
[]
);
return (
<WalletProvider wallets={wallets} autoConnect>
{children}
</WalletProvider>
);
};