Skip to content

Commit d2f472a

Browse files
authored
Merge pull request #293 from luclu7/main
fix: codeVerifier shouldn't be empty for basic auth
2 parents 67be8ae + 4678193 commit d2f472a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/handlers/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TokenHandler() gin.HandlerFunc {
6666

6767
// check if clientID & clientSecret are present as part of
6868
// authorization header with basic auth
69-
if clientID == "" && clientSecret == "" && codeVerifier == "" {
69+
if clientID == "" && clientSecret == "" && codeVerifier != "" {
7070
clientID, clientSecret, _ = gc.Request.BasicAuth()
7171
}
7272

0 commit comments

Comments
 (0)