mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-06-13 02:40:48 -05:00
Fixed NEX token generating
This commit is contained in:
parent
79b4364ec7
commit
60d7a0ae64
|
|
@ -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'})
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user