Fix type of controller.auth_secret

This commit is contained in:
Cooldude2606 committed 2026-03-04 21:02:39 +00:00
1 parent 687a384fe4
commit 014b18caf8
7 files changed
+21 -45

No files matched your search

+2 -1
View File
@@ -151,7 +151,8 @@ export default class UserManager {
signUserToken(user: UserRecord): string {
return jwt.sign(
{ aud: "user", user: user.id },
Buffer.from(this._controllerConfig.get("controller.auth_secret"), "base64")
// auth secret is never null after startup
Buffer.from(this._controllerConfig.get("controller.auth_secret")!, "base64")
);
}