Matt Rider
2d0c608380
Fix lint
2019-02-27 08:12:59 -03:00
Robert Schäfer
ea9f896ef8
Refactor store to use the new backend API
2019-02-27 11:06:02 +01:00
Robert Schäfer
71ab2f3828
Get rid of JWT_SECRET once and for all
...
* refactor store/auth.js not to use `delete Object`
* refactor store/auth.js to have less redundancy
* implement fetchCurrentUser without knowing the id beforehand
* test fetchCurrentUser and init
2019-02-26 16:26:04 +01:00
Robert Schäfer
b320ef30fc
Fix lint
2018-12-19 18:12:10 +01:00
Robert Schäfer
f85081c308
Properly test the reject branch of login
2018-12-19 17:58:25 +01:00
Robert Schäfer
48467bc697
Fix lint
2018-12-19 15:24:58 +01:00
Robert Schäfer
b17686656b
Test error path of #login procedure
2018-12-19 11:58:03 +01:00
Robert Schäfer
d465db5906
Test store/auth#login
2018-12-19 11:11:12 +01:00
Robert Schäfer
01f5cfd481
Run yarn run lint --fix
2018-12-19 11:11:12 +01:00
Robert Schäfer
fec665eaf4
Implement+test auth.isAuthenticated()
2018-12-19 11:11:12 +01:00