Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func HashPassword ¶
Types ¶
type PasetoMaker ¶
type PasetoMaker struct {
// contains filtered or unexported fields
}
func NewPaseto ¶
func NewPaseto() (*PasetoMaker, error)
func (*PasetoMaker) CreateToken ¶
func (maker *PasetoMaker) CreateToken(payload *Payload) (string, error)
func (*PasetoMaker) VerifyToken ¶
func (maker *PasetoMaker) VerifyToken(signed string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.