mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-13 04:42:39 -05:00
fix imports
This commit is contained in:
@@ -22,8 +22,8 @@ export default async function RootLayout({
|
||||
let session = null;
|
||||
if (shouldUseSession) {
|
||||
try {
|
||||
const authModule = eval('require("~/auth")');
|
||||
session = await authModule.getSession();
|
||||
const { getSession } = await import('~/auth');
|
||||
session = await getSession();
|
||||
} catch (error) {
|
||||
console.warn('Failed to get session:', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user