Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
dcc95b2
added access token only blacklist
HadyMash Feb 6, 2025
57cd76f
added mfa token
HadyMash Feb 7, 2025
1b746fc
small refactor
HadyMash Feb 22, 2025
0773df2
stash
HadyMash Feb 22, 2025
dbe6089
stash
HadyMash Feb 22, 2025
05b1051
merged with household management branch to get the latest changes for…
HadyMash Feb 22, 2025
2126070
initial version of registeration and confirming mfa
HadyMash Feb 23, 2025
e337e3a
login and verify mfa complete
HadyMash Feb 23, 2025
54e3db1
added check to see if user is already logged in
HadyMash Feb 23, 2025
49d3ee8
WIP completed registration and login apis, and SRP functionality impl…
HadyMash Feb 24, 2025
f9df907
stash
HadyMash Feb 26, 2025
1650a14
WIP stash
HadyMash Feb 27, 2025
f277d10
WIP working client proof calculation in app
HadyMash Feb 27, 2025
4ce5a12
deleted old srp class
HadyMash Feb 27, 2025
9d1f22a
WIP redoing auth api to fix some weird issue i couldnt figure out wit…
HadyMash Mar 1, 2025
781da38
WIP SRP working between client and server
HadyMash Mar 2, 2025
0850e14
Completed SRP server side, and added back redis functionality as well…
HadyMash Mar 2, 2025
89dcb94
added a token refresh route as well as auto refresh and added a logou…
HadyMash Mar 11, 2025
6bff00b
fixed an issue with the refresh route
HadyMash Mar 17, 2025
df118ca
added a script to generate a jwe encryption key
HadyMash Mar 18, 2025
8c2ae9c
updated auth controller to return the mfa formatted key where it shou…
HadyMash Mar 18, 2025
da58824
updated register route to return an mfa token
HadyMash Mar 18, 2025
fe727dc
updated register return
HadyMash Mar 19, 2025
664fb4d
fix
HadyMash Mar 19, 2025
ea4ba48
.
HadyMash Mar 19, 2025
ef39142
Marketing website done
MaksimMuzychenko Mar 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/*.env
**/*venv
**/node_modules
**/dump.rdb
2 changes: 2 additions & 0 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ field until rotations are implemented.

**`AUTH_TOKEN_REFRESH_EXPIRY_SECONDS`:** The time in seconds for the refresh token expiry (how long it lives). The refresh token is used to refresh/create new access tokens.

**`AUTH_TOKEN_MFA_EXPIRY_SECONDS`:** The time in seconds for the MFA token to expire (how long it lives). This should be a very short duration, typically around 5 minutes.

**`MONGODB_URL`:** The MongoDB connection URL

**`REDIS_URL`:** The Redis cache server URL
10 changes: 10 additions & 0 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"start": "node --no-assertions dist/index.js",
"build": "tsc",
"dev": "nodemon --exec ts-node src/index.ts",
"dev:configure-db": "ts-node src/configure-db.ts",
"configure-db": "node --no-assertions dist/configure-db.js",
"generate-jwe-key": "ts-node src/generate-jwe-encryption-key.ts",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
Expand Down
19 changes: 19 additions & 0 deletions api/src/configure-db.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import dotenv from 'dotenv';
// eslint-disable-next-line no-restricted-imports
import { DatabaseService } from './services/db/db';
dotenv.config();

async function run() {
const db = new DatabaseService();

await db.configureCollections();
}

run()
.then(() => {
console.log('Database collections configured');
process.exit(0);
})
.catch((e) => {
throw e;
});
Loading