Open nnsier opened 5 years ago
This is obviously more difficult than I remembered because I need to have middleware that authenticates each request from the front end. Consider using passport.js because I want to have logout functionality and jwt doesn't natively allow that.
Send post request. Signup Check if username exists if so, have error
Login username password post request redirect after logging in.