Versions in this module Expand all Collapse all v1 v1.4.2 Jun 3, 2024 Changes in this version + type Token struct + Expire time.Time + Name string + Scope []string + Time time.Time + Value string + func NewToken(length int, duration time.Duration, scope ...string) *Token + func (t *Token) IsScope(scopes ...string) bool + func (t *Token) IsValid() bool + func (t *Token) MarshalJSON() ([]byte, error) + func (t *Token) String() string + type TokenCreate struct + Duration time.Duration + Scope []string