summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/util/Token.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/util/Token.ts b/src/util/util/Token.ts
index eec72522..97bdec74 100644
--- a/src/util/util/Token.ts
+++ b/src/util/util/Token.ts
@@ -40,6 +40,9 @@ export const checkToken = (
 	},
 ): Promise<UserTokenData> =>
 	new Promise((resolve, reject) => {
+		token = token.replace("Bot ", ""); // there is no bot distinction in sb
+		token = token.replace("Bearer ", ""); // allow bearer tokens
+
 		jwt.verify(
 			token,
 			Config.get().security.jwtSecret,