Skip to content

Confused about using NextAuth for App Router #13363

@devnchill

Description

@devnchill

What is the improvement or update you wish to see?

Hey everyone , I'm new to React and NextAuth. Seems like the current Next js uses App router so for backend we do app/api and not pages . However docs in NextAuth still use pages/auth and i'm confused how to use it for current Next version.

There's a link suggesting for new App Router for initialization but even that page seems to not have fully updated docs.

Some relevant pages

Is there any context that might help us understand?

It would be nice if the docs are separate for app router and pages one

Does the docs page already exist? Please link to it.

https://next-auth.js.org/getting-started/example

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions