From 2c4c87927d844d9523e3733fb69cd4ce1b674804 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Fri, 7 Aug 2020 19:08:46 +0200 Subject: [PATCH] Fix bug with empty scopes --- src/api/oauth/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/oauth/auth.ts b/src/api/oauth/auth.ts index 6f4c4e2..6e35649 100644 --- a/src/api/oauth/auth.ts +++ b/src/api/oauth/auth.ts @@ -102,7 +102,7 @@ const GetAuthRoute = (view = false) => ); }; - const scopes = scope.split(";"); + const scopes = scope.split(";").filter((e: string) => e !== ""); Logging.debug("Scopes:", scope);