feat!: proxy images with JWT auth

This commit is contained in:
httpjamesm 2023-02-02 19:05:08 -05:00
parent 7494b2df33
commit 5f11bcd6a2
No known key found for this signature in database
8 changed files with 151 additions and 2 deletions

14
src/types/imageProxy.go Normal file
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
}