Documentation ¶
Overview ¶
Package authtoken creates JWT tokens to secure the websockets connections
Index ¶
Constants ¶
View Source
const (
// DefaultExpiry for the auth token
DefaultExpiry = maxExpiry
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EpinioClaims ¶
type EpinioClaims struct { jwt.RegisteredClaims Username string `json:"user"` }
EpinioClaims are the values we store in the JWT
func Validate ¶
func Validate(t string) (*EpinioClaims, error)
Validate makes sure the token is created by and not expired
Click to show internal directories.
Click to hide internal directories.