Commit Graph

43 Commits

Author SHA1 Message Date
thecodrr
fd77598a04 feat: impl remember me when logging in 2020-12-09 21:39:28 +05:00
thecodrr
f7b510d87b fix: do not depend on client for user key salt 2020-11-17 12:17:56 +05:00
thecodrr
df287e5159 feat: use secure key storage (ask for client to store keys) 2020-11-17 11:40:41 +05:00
thecodrr
6fdb81fd84 feat: add 1 min rollover auto syncing 2020-11-02 09:50:27 +05:00
thecodrr
36dc92e633 feat: minor cleanups and fixes 2020-10-28 10:58:07 +05:00
thecodrr
bf29a0ab16 fix: properly change host via db.host method 2020-09-19 11:46:36 +05:00
thecodrr
ea51fa7aa0 feat: handle "not authorized" error by logging the user out 2020-08-25 09:08:55 +05:00
thecodrr
d7e3e1d1e7 fix: merge user properly on user sync 2020-08-24 13:05:41 +05:00
thecodrr
94e02adf67 fix: remove leading front slash from HOST 2020-08-24 11:27:21 +05:00
thecodrr
30a64a3795 feat: add sse support 2020-08-24 11:14:16 +05:00
thecodrr
29004abd6d feat: remove auto logout 2020-08-22 11:52:19 +05:00
thecodrr
c9eff9e2c1 feat: remove unused upgrade code 2020-08-22 11:30:37 +05:00
thecodrr
37dbc7f4f4 feat: backend data structure changes 2020-08-22 11:25:23 +05:00
thecodrr
237cee8a3f fix: log user out if it's deleted from db 2020-08-15 09:42:32 +05:00
thecodrr
f01a18f1d9 feat: remove internet check 2020-08-06 09:57:16 +05:00
thecodrr
c301d220a4 feat: add internet connectivity check 2020-05-27 10:04:21 +05:00
thecodrr
90fb248e73 BREAKING: remove isPremium method from user 2020-05-27 09:48:49 +05:00
thecodrr
f3538df1cd fix: use .call to change context in authRequest 2020-05-23 17:29:02 +05:00
thecodrr
f20ec7e387 fix: check if user is logged in before upgrading 2020-05-23 17:24:01 +05:00
thecodrr
2e80859bea feat: sync user on startup 2020-05-23 17:20:24 +05:00
thecodrr
a7a1d3396a fix(user): send authorization token with upgrade req 2020-05-21 21:59:06 +05:00
thecodrr
ea169b46f8 feat: impl upgrade logic 2020-05-21 20:34:13 +05:00
thecodrr
81718834e5 feat: properly impl isPremium fn in user 2020-05-14 15:13:15 +05:00
thecodrr
11151d9d2c feat: implement function to get user's pro status 2020-05-13 04:22:19 +05:00
thecodrr
c902076b4e fix: crash when logging out 2020-05-04 12:21:15 +05:00
thecodrr
bbebee06a0 user: throw on 200 status code if there's error in body 2020-04-25 12:09:20 +05:00
thecodrr
58d63de654 user: fix typo 2020-04-16 03:32:07 +05:00
thecodrr
55b6b0733b core: clear cache and database on logout 2020-04-16 03:27:22 +05:00
thecodrr
451b15ef89 user: remove unnecessary async modifier 2020-04-14 11:36:25 +05:00
thecodrr
a462a02f56 user: use fixed salt to derive key for encryption 2020-04-13 15:36:51 +05:00
thecodrr
93f4fdfa6a sync: encrypt/decrypt data before syncing 2020-04-13 12:04:49 +05:00
thecodrr
b12e61198e user: derive & store encryption key when authenticating 2020-04-13 11:23:02 +05:00
thecodrr
a4d48b8da2 user: fix expiry time handling 2020-04-11 11:28:17 +05:00
thecodrr
4357a1e496 ci: add user model tests 2020-04-07 19:05:00 +05:00
thecodrr
125104b379 fix: some error handling 2020-03-19 14:30:05 +05:00
thecodrr
1c1d87696b fix: save user with "user" key instead of username 2020-03-18 14:06:40 +05:00
thecodrr
9582888f35 fix: minor fixes 2020-03-17 12:10:09 +05:00
thecodrr
03f7505fbe remove node-fetch 2020-02-23 19:57:46 +05:00
ammarahm-ed
04af9e1668 fix sync 2020-02-12 02:09:08 +05:00
thecodrr
5608d8720c fix: wrong access token and refresh token case 2020-02-12 01:05:05 +05:00
thecodrr
4cc24e687c feat: implement notes/nb syncing (untested) 2020-02-12 00:52:17 +05:00
thecodrr
e4aaf97c5d feat: add basic syncing (untested) 2020-02-11 16:28:28 +05:00
thecodrr
ef8e7a67c7 feat: add user login/logout to database 2020-02-11 13:12:47 +05:00