# Error in Nextjs 15

**URL:** <https://community.auth0.com/t/error-in-nextjs-15/151480>\
**Category:** Get Help\
**Tags:** logs, management-api, free-trial\
**Created:** [November 13, 2024, 10:56pm UTC](https://community.auth0.com/t/error-in-nextjs-15/151480 "2024-11-13T22:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uprizingFaze](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/uprizingfaze/32/62175_2.png) [@uprizingFaze](https://community.auth0.com/u/uprizingFaze)\
**Post date:** [November 13, 2024, 10:56pm UTC](https://community.auth0.com/t/error-in-nextjs-15/151480/1 "2024-11-13T22:56:35Z")

</div>

This is the error in the server console;  
Error: Route “/api/auth/[auth0]” used `params.auth0`. `params` should be awaited before using its properties. Learn more: [Dynamic APIs are Asynchronous | Next.js](https://nextjs.org/docs/messages/sync-dynamic-apis)  
at createParamsAccessError (webpack://next/dist/src/server/request/params.ts:467:9)  
at getMessage (webpack://next/dist/src/server/create-deduped-by-callsite-server-error-logger.ts:46:20)  
at warnForSyncAccess (webpack://next/dist/src/server/request/params.ts:445:4)  
at syncIODev (webpack://next/dist/src/server/request/params.ts:403:10)  
at (node\_modules/@auth0/nextjs-auth0/src/handlers/auth.ts:210:23)  
at (node\_modules/@auth0/nextjs-auth0/src/handlers/auth.ts:197:15)  
at run (webpack://next/dist/src/server/route-modules/app-route/module.ts:529:41)  
at handler (webpack://next/dist/src/server/route-modules/app-route/module.ts:725:18)  
at fn (node\_modules/next/src/server/lib/trace/tracer.ts:351:27)  
at NoopContextManager.with (/Users/macbookpro/Desktop/odiisea/node\_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)  
at ContextAPI.with (/Users/macbookpro/Desktop/odiisea/node\_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)  
at NoopTracer.startActiveSpan (/Users/macbookpro/Desktop/odiisea/node\_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)  
at ProxyTracer.startActiveSpan (/Users/macbookpro/Desktop/odiisea/node\_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)  
at startActiveSpan (node\_modules/next/src/server/lib/trace/tracer.ts:304:31)  
at NoopContextManager.with (/Users/macbookpro/Desktop/odiisea/node\_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)  
at ContextAPI.with (/Users/macbookpro/Desktop/odiisea/node\_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)  
at spanContext (node\_modules/next/src/server/lib/trace/tracer.ts:303:24)  
at trace (webpack://next/dist/src/server/route-modules/app-route/module.ts:715:26)  
at run (webpack://next/dist/src/server/route-modules/app-route/module.ts:662:32)  
at run (webpack://next/dist/src/server/route-modules/app-route/module.ts:661:34)  
at run (webpack://next/dist/src/server/route-modules/app-route/module.ts:658:60)  
at handle (node\_modules/next/src/server/base-server.ts:2504:47)  
at doRender (node\_modules/next/src/server/base-server.ts:3027:27)  
at responseGenerator (node\_modules/next/src/server/response-cache/index.ts:67:13)  
at get (node\_modules/next/src/server/base-server.ts:3039:48)  
at async DevServer.renderPageComponent (node\_modules/next/src/server/base-server.ts:3597:15)  
at async DevServer.renderToResponseImpl (node\_modules/next/src/server/base-server.ts:3659:23)  
at async DevServer.pipeImpl (node\_modules/next/src/server/base-server.ts:1698:20)  
at async NextNodeServer.handleCatchallRenderRequest (node\_modules/next/src/server/next-server.ts:1034:6)  
at async DevServer.handleRequestImpl (node\_modules/next/src/server/base-server.ts:1462:8)  
at async (node\_modules/next/src/server/dev/next-dev-server.ts:514:13)  
at async Span.traceAsyncFn (node\_modules/next/src/trace/trace.ts:143:13)  
at async DevServer.handleRequest (node\_modules/next/src/server/dev/next-dev-server.ts:512:19)  
at async invokeRender (node\_modules/next/src/server/lib/router-server.ts:284:10)  
at async handleRequest (node\_modules/next/src/server/lib/router-server.ts:530:15)  
at async requestHandlerImpl (node\_modules/next/src/server/lib/router-server.ts:576:6)  
at async Server.requestListener (node\_modules/next/src/server/lib/start-server.ts:146:6)  
465 | ) {  
466 | const prefix = route ? `Route "${route}" ` : 'This route ’

> 467 | return new Error(  
> | ^  
> 468 | `${prefix}used ${expression}. ` +  
> 469 | `\`params` should be awaited before using its properties. `+ 470 | `Learn more: [https://nextjs.org/docs/messages/sync-dynamic-apis`](https://nextjs.org/docs/messages/sync-dynamic-apis%60)  
> GET /api/auth/me 200 in 3734ms

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [November 13, 2024, 11:02pm UTC](https://community.auth0.com/t/error-in-nextjs-15/151480/3 "2024-11-13T23:02:46Z")

</div>

Hi @uprizingFaze!

Welcome to the Auth0 Community!

We plan to address this in the v4 release of the Next.js SDK. The beta version of v4 (with Next 15 support) is out. Please see here: [@auth0/nextjs-auth0 - npm](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.0.0-beta.0)

Please also see this relevant GitHub issue: [Support async API required by Next 15 · Issue #1779 · auth0/nextjs-auth0 · GitHub](https://github.com/auth0/nextjs-auth0/issues/1779#issuecomment-2458838687)

Please let me know if you have any additional questions!

Best,

Mary Beth

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 27, 2024, 11:03pm UTC](https://community.auth0.com/t/error-in-nextjs-15/151480/4 "2024-11-27T23:03:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
