You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When locally running hackerAPI + dashboard, almost every action you make returns GET http://localhost:3000/api/... 401 (Unauthorized)
The error is being thrown due to async function ensureAuthorized(req, findByIdFns) returning a false value at the end of the function:
async function ensureAuthorized(req, findByIdFns) {
...
if (currentlyValid) {
return currentlyValid;
}
}
return false; <---- this is where the function returns
}
UPDATE: It is very possible the issue originates from the way the user was created. I manually changed the verification status in the database since the emails weren't sending. This manual change could mess with permissions/roles/authorization
I believe the emails aren't sending due to a sendgrid problem:
Activity