mirror of
https://github.com/gofiber/fiber.git
synced 2025-07-29 21:50:04 +00:00
14 lines
288 B
Go
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"`
|
|
}
|