add a note about us only supporting bearer oauth tokens

This commit is contained in:
kim 2024-08-09 13:00:20 +01:00
parent 53fcea5751
commit dc02c87e2d

View file

@ -80,6 +80,9 @@ func Idempotency() gin.HandlerFunc {
// request fingerprint along with idempotency // request fingerprint along with idempotency
// key to ensure uniqueness across logged-in // key to ensure uniqueness across logged-in
// device sessions regardless of IP. // 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") + key = c.Request.Header.Get("Authorization") +
c.Request.UserAgent() + key c.Request.UserAgent() + key