fiber/middleware/csrf/token.go
Jason McNeil e17bab7946
Refactor CSRF middleware and enhance documentation (#3598)
Co-authored-by: RW <rene@gofiber.io>
2025-07-19 20:11:33 +02:00

14 lines
288 B
Go

package csrf
import (
"time"
)
// Token represents a CSRF token with expiration metadata.
// This is used internally for token storage and validation.
type Token struct {
Expiration time.Time `json:"expiration"`
Key string `json:"key"`
Raw []byte `json:"raw"`
}