From 89a4d62fec5146bac6105cbe4a7e378952a54696 Mon Sep 17 00:00:00 2001 From: Brion Date: Mon, 14 Jul 2025 11:08:19 +0530 Subject: [PATCH] Update import paths for asgardeoMiddleware and AsgardeoProvider to use '@asgardeo/nextjs/server' --- en/includes/quick-starts/nextjs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/includes/quick-starts/nextjs.md b/en/includes/quick-starts/nextjs.md index 8a740050fc..84fa005ebe 100644 --- a/en/includes/quick-starts/nextjs.md +++ b/en/includes/quick-starts/nextjs.md @@ -91,7 +91,7 @@ Create a file called `middleware.ts` in the root of your Next.js project and int The `asgardeoMiddleware` helper integrates Asgardeo authentication into your Next.js application and supports both the App and Pages routers. ```bash title="middleware.ts" -import {asgardeoMiddleware} from '@asgardeo/nextjs'; +import {asgardeoMiddleware} from '@asgardeo/nextjs/server'; export default asgardeoMiddleware(); @@ -112,7 +112,7 @@ Add the following changes to the `app/layout.tsx` file in your Next.js project. ```javascript title="app/layout.tsx" hl_lines="3 31" import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; -import {AsgardeoProvider} from '@asgardeo/nextjs'; +import {AsgardeoProvider} from '@asgardeo/nextjs/server'; import "./globals.css"; const geistSans = Geist({