mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-06 09:22:32 -05:00
fix: use session provider whenever next auth is included
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@neynar/create-farcaster-mini-app",
|
||||
"version": "1.7.6",
|
||||
"version": "1.7.7",
|
||||
"type": "module",
|
||||
"private": false,
|
||||
"access": "public",
|
||||
|
||||
@@ -25,8 +25,8 @@ export function Providers({
|
||||
const solanaEndpoint =
|
||||
process.env.SOLANA_RPC_ENDPOINT || 'https://solana-rpc.publicnode.com';
|
||||
|
||||
// Only wrap with SessionProvider if session is provided
|
||||
if (session) {
|
||||
// Only wrap with SessionProvider if next auth is used
|
||||
if (process.env.SPONSOR_SIGNER === 'true' || process.env.SEED_PHRASE) {
|
||||
return (
|
||||
<SessionProvider session={session}>
|
||||
<WagmiProvider>
|
||||
|
||||
Reference in New Issue
Block a user