Skip to content

Commit

Permalink
add a note about us only supporting bearer oauth tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaaaWhatsUpDoc committed Aug 9, 2024
1 parent 53fcea5 commit dc02c87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/middleware/idempotency.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ func Idempotency() gin.HandlerFunc {
// request fingerprint along with idempotency
// key to ensure uniqueness across logged-in
// device sessions regardless of IP.
//
// NOTE: using the auth header is only an option
// because we ONLY support bearer oauth tokens.
key = c.Request.Header.Get("Authorization") +
c.Request.UserAgent() + key

Expand Down

0 comments on commit dc02c87

Please sign in to comment.