mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
fix removed Buffer from base64 auth_secret
This commit is contained in:
1 parent
3fac5b00d3
commit
c96a13ef30
1 file changed
+1
-1
@@ -289,7 +289,7 @@ ${err.stack}`
|
|||||||
try {
|
try {
|
||||||
let tokenPayload = jwt.verify(
|
let tokenPayload = jwt.verify(
|
||||||
data.token,
|
data.token,
|
||||||
this.controller.config.get("controller.auth_secret"),
|
Buffer.from(this.controller.config.get("controller.auth_secret"), "base64"),
|
||||||
{ audience: "user" }
|
{ audience: "user" }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user