Fix: Todo Multi refresh ...
fix some promises problem
This commit is contained in:
@@ -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
|
||||
}]
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user