Skip to content
Discussion options

You must be logged in to vote

Me neither on first look, but generally you don't need to fetch as you do on line 13 if you have an API route. try extracting your logic and import the actual method for handling the login process.

UPDATE: An idea. 💡. I think relative paths for fetch in the backend is not supported. Try prepending your url with http://localhost:3000 (or better yet, import the login logic as I suggested above)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@callumok2004
Comment options

@balazsorban44
Comment options

@callumok2004
Comment options

Answer selected by callumok2004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
question Ask how to do something or how something works
2 participants
Converted from issue

This discussion was converted from issue #2661 on September 05, 2021 08:18.