Documentation ¶ Index ¶ type Jwt func NewJwt(key []byte) *Jwt func (j *Jwt) ParseToken(tokenString string) (*jwt.Token, error) func (j *Jwt) VerifyToken(tokenString string) bool type Secure func New(fs afero.Fs) *Secure func (s *Secure) JwtFromFile(ctx context.Context, path string) (*Jwt, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Jwt ¶ added in v1.0.0 type Jwt struct { // contains filtered or unexported fields } func NewJwt ¶ added in v1.0.0 func NewJwt(key []byte) *Jwt func (*Jwt) ParseToken ¶ added in v1.0.0 func (j *Jwt) ParseToken(tokenString string) (*jwt.Token, error) func (*Jwt) VerifyToken ¶ added in v1.0.0 func (j *Jwt) VerifyToken(tokenString string) bool type Secure ¶ type Secure struct { // contains filtered or unexported fields } func New ¶ added in v1.0.0 func New(fs afero.Fs) *Secure func (*Secure) JwtFromFile ¶ added in v1.0.0 func (s *Secure) JwtFromFile(ctx context.Context, path string) (*Jwt, error) Source Files ¶ View all Source files jwt.go secure.go Click to show internal directories. Click to hide internal directories.