Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How use it with Next 13 (App Router) #14

@kaiofelipejs

Description

@kaiofelipejs

Hello!
I've some problems using this lib with next 13 using app router. The usage mode described in README.md, doesn't work properly. I tried use as API Route and Route Handler but don't work as well.

Examples:

API routes

image

In this way i receive 404 page.

Route Handlers

image

In this way i receive this error:

auth host=undefined
- error TypeError: res.writeHead is not a function

I'm not sure if is correct pass NextResponse


What I'm doing wrong?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions