100devs / course-tracker

A course-tracker for 100Devs
26 stars 9 forks source link

Bug - Auth.js inside middleware #76

Closed YolandaHaynes closed 3 years ago

YolandaHaynes commented 3 years ago

An issue in auth.js inside the middleware for server side. The conditionals has two if statements that's going through at the same time, so it was sending out a double response which is causing error to reach endpoints.

Possible fixes: