Skip to content

handleAuthRoutes doesn't handle routes #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ZenyoSelf opened this issue Sep 23, 2024 · 2 comments
Open

handleAuthRoutes doesn't handle routes #7

ZenyoSelf opened this issue Sep 23, 2024 · 2 comments

Comments

@ZenyoSelf
Copy link

As for the Remix 2.12 version, handleAuthRoutes doesn't add the routes described in the function, as said in the console when trying to get there :

ErrorResponseImpl {
  status: 404,
  statusText: 'Not Found',
  internal: true,
  data: 'Error: No route matches URL "/api/logto/sign-in"',
  error: Error: No route matches URL "/api/logto/sign-in"
@sagarsubedi
Copy link

instead of creating $action.ts under folder /api/logto create a file at root route folder called api.logto.$action.ts and put that content. Also make sure you have node v20 or higher. It will work after that. @ZenyoSelf

@ZenyoSelf
Copy link
Author

Indeed it does ! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants