feat!: proxy images with JWT auth

This commit is contained in:
httpjamesm
2023-02-02 19:05:08 -05:00
parent 7494b2df33
commit 5f11bcd6a2
8 changed files with 151 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
package types
import "github.com/golang-jwt/jwt/v4"
type ImageProxyClaims struct {
Action string `json:"action"`
ImageURL string `json:"image_url"`
Iss int64 `json:"iss"`
Exp int64 `json:"exp"`
jwt.RegisteredClaims
}