Skip to content

Server API route is a catch-all for all endpoints, not strictly /api/auth/... #7

@Eazash

Description

@Eazash

The server api route described in this example is it server/api/[...auth].ts and thus effectively captures all routes including /api/auth which are the only ones relevant to better-auth. While its still functional, I'd argue is technically incorrect and can be confusing for beginners with nuxt and nitro. Notably, the better auth example uses server/api/auth/[...all].ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions