From 6b2176da4d94e66f40bc4a8df94b500e696aad0c Mon Sep 17 00:00:00 2001 From: jonaslagoni Date: Sun, 29 Jan 2023 01:11:30 +0100 Subject: [PATCH] fix: authorization throws exception --- Oxide.Ext.GamingApi/GamingApiNats.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oxide.Ext.GamingApi/GamingApiNats.cs b/Oxide.Ext.GamingApi/GamingApiNats.cs index cb8a536..0ef1624 100644 --- a/Oxide.Ext.GamingApi/GamingApiNats.cs +++ b/Oxide.Ext.GamingApi/GamingApiNats.cs @@ -84,7 +84,7 @@ private GamingApiNats(LoggingInterface logger) { // get a private key seed from your environment. string seed = this.GetNatsJwtSeed(); - this.Logger.Info("NATS: Loading jwt seed : " + seed.Substring(seed.Length-4, seed.Length-1)); + this.Logger.Info("NATS: Loading jwt seed : " + seed.Substring(0, 3)); // Generate a NkeyPair NkeyPair kp = Nkeys.FromSeed(seed);