Closed michael closed 8 years ago
User record in db:
userId
loginKey
name
I will sketch the createUser method. And update here.
Session record in database (gets inserted when createSession is called)
sessionToken
getSession however should return the user object
{sessionToken: ..., user: {..}}
I think this is mostly done in server-refactor branch. However not yet connected to router.
server-refactor
User record in db:
userId
(just an id counter 1, 2, 3 ,....)loginKey
automatically created on createUsername
provided by the userI will sketch the createUser method. And update here.
Session record in database (gets inserted when createSession is called)
sessionToken
(primary key)userId
just references a user in user tablegetSession however should return the user object
{sessionToken: ..., user: {..}}
- full user record but without loginKey!