Skip to content

Commit 4b959b4

Browse files
committed
Changed AuthCompleteAction to send seconds instead of milliseconds for expire time
1 parent 3a5b44e commit 4b959b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actions/clientbound/AuthCompleteAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AuthCompleteAction extends Action {
2727

2828
this.addPayload(Buffer.from(sessionToken))
2929
const buf = Buffer.alloc(4)
30-
buf.writeUInt32BE(expiration.getTime(), 0)
30+
buf.writeUInt32BE(expiration.getTime() / 1000, 0)
3131
this.addPayload(buf)
3232
}
3333
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@quickplaymod/quickplay-actions-js",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Quickplay's central Action controller, written in TypeScript.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)