mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-06-21 00:20:57 +00:00
feat!: proxy images with JWT auth
This commit is contained in:
parent
7494b2df33
commit
5f11bcd6a2
8 changed files with 151 additions and 2 deletions
14
src/types/imageProxy.go
Normal file
14
src/types/imageProxy.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue