Skip to content

Commit 499fc7d

Browse files
committed
fix: add scope to url if only a single scope is set
1 parent 9c90e1b commit 499fc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function urlBuilderAuthorize(
6262
if (k !== "scopes") return true;
6363
if (options.clientType === "github-app") return false;
6464

65-
return !Array.isArray(options[k]) || (options[k] as string[]).length > 1;
65+
return !Array.isArray(options[k]) || (options[k] as string[]).length > 0;
6666
})
6767

6868
// Map Array with the proper URL parameter names and change the value to a string using template strings

0 commit comments

Comments
 (0)