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:
8
seasoned_api/src/user/user.js
Normal file
8
seasoned_api/src/user/user.js
Normal file
@@ -0,0 +1,8 @@
|
||||
class User {
|
||||
constructor(username, email) {
|
||||
this.username = username;
|
||||
this.email = email;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = User;
|
||||
Reference in New Issue
Block a user