fix: use session provider whenever next auth is included

This commit is contained in:
veganbeef 2025-07-16 13:12:48 -07:00
parent aac3a739cd
commit 86b79e7f3f
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@neynar/create-farcaster-mini-app", "name": "@neynar/create-farcaster-mini-app",
"version": "1.7.6", "version": "1.7.7",
"type": "module", "type": "module",
"private": false, "private": false,
"access": "public", "access": "public",

View File

@ -25,8 +25,8 @@ export function Providers({
const solanaEndpoint = const solanaEndpoint =
process.env.SOLANA_RPC_ENDPOINT || 'https://solana-rpc.publicnode.com'; process.env.SOLANA_RPC_ENDPOINT || 'https://solana-rpc.publicnode.com';
// Only wrap with SessionProvider if session is provided // Only wrap with SessionProvider if next auth is used
if (session) { if (process.env.SPONSOR_SIGNER === 'true' || process.env.SEED_PHRASE) {
return ( return (
<SessionProvider session={session}> <SessionProvider session={session}>
<WagmiProvider> <WagmiProvider>