Fixed NEX token generating

This commit is contained in:
RedDucks 2018-04-10 14:12:26 -04:00
parent 79b4364ec7
commit 60d7a0ae64

View File

@ -196,19 +196,15 @@ routes.get('/nex_token/@me', async (request, response) => {
nex_password: nex_password,
pid: user.pid,
port: port,
token: {
service_token: {
token: jwt.sign({
data: {
type: 'service_token',
payload: user
}
}, {
key: config.JWT.SERVICE.PRIVATE,
passphrase: config.JWT.SERVICE.PASSPHRASE
}, { algorithm: 'RS256'})
token: jwt.sign({
data: {
type: 'nex_token',
payload: user
}
}
}, {
key: config.JWT.NEX.PRIVATE,
passphrase: config.JWT.NEX.PASSPHRASE
}, { algorithm: 'RS256'})
}
};