Skip to content

Commit 5574de7

Browse files
committed
refactor: update minimum length requirement for GitHub token validation
1 parent c841167 commit 5574de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/api/github-api-client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ class GitHubAPIClient {
115115
)
116116
}
117117

118-
if (trimmedToken.length < 20) {
119-
throw new Error('GitHub token is too short. Minimum length is 20 characters.')
118+
if (trimmedToken.length < 40) {
119+
throw new Error('GitHub token is too short. Minimum length is 40 characters.')
120120
}
121121

122122
if (trimmedToken.length > 255) {

0 commit comments

Comments
 (0)