Added token, user, userRepository and userSecurity in user folder. This handles creating new users, loging in and creating a user specific token then returning it when logging in.

This commit is contained in:
2017-09-27 16:15:28 +02:00
parent 72654fd465
commit 6ec6c7f9cb
4 changed files with 181 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class User {
constructor(username, email) {
this.username = username;
this.email = email;
}
}
module.exports = User;