mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-15 23:58:56 -05:00
fix: use session provider whenever next auth is included
This commit is contained in:
parent
aac3a739cd
commit
86b79e7f3f
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user