Skip to content

Commit c94bede

Browse files
authored
Add audience to JWT token (#743)
* Add audience to JWT token in login.js * Fix lint
1 parent 1b38211 commit c94bede

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/handshake/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (client, server, options) => {
2121
xid: String(client.profile.xuid || '0'),
2222
xname: client.username,
2323
identity: client.profile.uuid
24-
}, privateKey, { algorithm, notBefore: 0, issuer: 'self', expiresIn: 60 * 60, header: { x5u: client.clientX509, typ: undefined } })
24+
}, privateKey, { algorithm, notBefore: 0, issuer: 'self', expiresIn: 60 * 60, audience: 'api://auth-minecraft-services/multiplayer', header: { x5u: client.clientX509, typ: undefined } })
2525
} else {
2626
const payload = {
2727
extraData: {

0 commit comments

Comments
 (0)