Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash compare 2 hash are same
func HashPassword ¶
HashPassword create hash of string
Types ¶
type Claims ¶
type Claims struct { Username string `json:"username"` jwt.StandardClaims }
Claims Custome object
type JWToken ¶
type JWToken struct {
// contains filtered or unexported fields
}
JWToken object of service
func NewJWToken ¶
NewJWToken Create new service object
func (*JWToken) CreateToken ¶
CreateToken genrate new toekn for spacfic user
Click to show internal directories.
Click to hide internal directories.