Fix: Todo Multi refresh ...

fix some promises problem
This commit is contained in:
Paolo Arena
2019-02-14 19:01:41 +01:00
parent 0b4ac6391d
commit f6fa45a9e9
13 changed files with 191 additions and 121 deletions

View File

@@ -38,8 +38,9 @@ const users = [{
username: 'paoloar77B',
password: mypwdcrypted,
tokens: [{
access: 'auth ' + useragent,
token: jwt.sign({ _id: userOneId, access: 'auth ' + useragent }, process.env.SIGNCODE).toString(),
access: 'auth',
browser: useragent,
token: jwt.sign({ _id: userOneId, access: 'auth' }, process.env.SIGNCODE).toString(),
date_login
}]
},
@@ -52,8 +53,9 @@ const users = [{
password: mypwdcrypted,
username: 'paoloar77C',
tokens: [{
access: 'auth ' + useragent,
token: jwt.sign({ _id: userTwoId, access: 'auth ' + useragent }, process.env.SIGNCODE).toString(),
access: 'auth',
browser: useragent,
token: jwt.sign({ _id: userTwoId, access: 'auth' }, process.env.SIGNCODE).toString(),
date_login
}]
}, {