Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing ORM, JWT for sessions, pair w/o imei #10

Open
wants to merge 151 commits into
base: main
Choose a base branch
from

Conversation

AdamsBlack
Copy link
Contributor

Moved logic out of routes, moving SQL queries from direct SQL to Sequelize ORM.
Sessions are now stored as a JWT, future expansion will allow users to invaldiate previous sessions.

AdamsBlack and others added 30 commits May 22, 2021 22:24
Amended table: Accounts
* verified - int - default: 0
* email_verify_token - text
Converted a few more routes to return json

New config option: flag: { useUserAdminApi: BOOLEAN } this will load the userAdminApi routes into the express app.
Modified pairing to support new registrations
and moved into devices controller using
ORM now, not 100% tested
token.

TODO: sign tokens based user unique token, instead of
global salt key
Removed pointlessly stateful controllers, admin api fleshed out
added logging to athena
This reverts commit 751742a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants