mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08: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",
|
"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",
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user