Authorization API handler

The backend calls to the API server implement the requested fetch request on the server. This includes Account creation/edit, login/logout and password edit/reset.

fbDB.js

Upon a successful login the API Server will send an httpOnly cookie that contains a Json Web Token. Future API requests will discover this cookie and restore the validated User from the provided token values.

Using eslint & airbnb syle guide for js syntax

I have been utilizing the airbnb javascript writing guide. Part of this has been following the guide and part utilizing the airbnb eslint configuration. It seems to be a reasonable standard to follow.

Installing eslint with the airbnb config: After adding in eslint and the eslint-config-airbnb npm I settled on the following current eslintrc.js config:


module.exports = {
"extends": "airbnb",
"rules": {
'max-len': [2, 250, 2,
{
'ignoreUrls': true,
'ignoreComments': false
}
],
}
}