SessionProvider missing in app router

I've got a t3 project using next 14 with next-auth and the "new" app router. It was created yesterday (Mar-19-2024).

According to the docs (next-auth page):

In your app’s entrypoint, you’ll see that your application is wrapped in a SessionProvider.

However, I don't see any <SessionProvider> in my app router project. And I'm pretty sure it is used in pages router t3 projects.

Is this intentional? I do believe I'm getting or trying something wrong. Maybe I should avoid using useSession() ?

Or is it ok if I wrap my application with a <SessionProvider> in ./src/app/layout.tsx?

Every comment is appreciated and I'm sure other noobs will be curious about that too!
Was this page helpful?