fix removed Buffer from base64 auth_secret

This commit is contained in:
Luciole committed 2023-08-14 10:03:31 +02:00
1 parent 3fac5b00d3
commit c96a13ef30
1 file changed
+1 -1
+1 -1
View File
@@ -289,7 +289,7 @@ ${err.stack}`
try {
let tokenPayload = jwt.verify(
data.token,
this.controller.config.get("controller.auth_secret"),
Buffer.from(this.controller.config.get("controller.auth_secret"), "base64"),
{ audience: "user" }
);