Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword verifies a bcrypt password hash.
func HashPassword ¶
HashPassword hashes a password with bcrypt.
Types ¶
type Claims ¶
type Claims struct {
UserID string `json:"uid"`
Email string `json:"email"`
Role string `json:"role"`
jwt.RegisteredClaims
}
Claims are JWT claims for platform sessions.
func ParseToken ¶
ParseToken validates and parses a platform JWT.
Click to show internal directories.
Click to hide internal directories.