secure

package
v1.0.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL