Skip to content

Next Auth ([...nextauth] route.ts) Doesn't work on Localhost #34

@josephna76

Description

@josephna76

The sign-up works but the sign-in doesn't on Localhost. Both sign-in and sign-up work on Vercel's hosted version.
The project was created using the one-click deployment to Vercel on Jun 23, 2023.

The message "Signed in as X" appears but the three dot loading state over the Sign In button does not end and the page gets stuck before getting to /protected.

I get this error - error TypeError [ERR_INVALID_URL]: Invalid URL. Am I unable to reach /protected despite being signed in because localhost is not an https route, whereas the Vercel deployed version is? http://localhost:3000/

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