Skip to content

Commit

Permalink
add TokenTypeToken
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing-ze committed Dec 26, 2024
1 parent 6fbbff4 commit d253259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion providers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func makeGitHubHeader(accessToken string) http.Header {
extraHeaders := map[string]string{
acceptHeader: "application/vnd.github.v3+json",
}
return makeAuthorizationHeader(tokenTypeToken, accessToken, extraHeaders)
return makeAuthorizationHeader(TokenTypeToken, accessToken, extraHeaders)
}

// ValidateSession validates the AccessToken
Expand Down
1 change: 1 addition & 0 deletions providers/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

const (
TokenTypeBearer = "Bearer"
TokenTypeToken = "token"

acceptHeader = "Accept"
acceptApplicationJSON = "application/json"
Expand Down

0 comments on commit d253259

Please sign in to comment.