Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHMACJWTToken ¶
func BuildHMACJWTToken(payload []byte, expireAt time.Time, hmacKeyID string) (token string, err error)
usualy payload is the serialized protobuf message
Types ¶
type Utility ¶
type Utility interface { BuildHMACJWTToken(payload []byte, expireAt time.Time, hmacKeyID string) (token string, err error) ParseHMACJWTToken(token string) (payload []byte, err error) Store(keyID string, secret string) (err error) Get(keyID string) (secret string, ok bool, err error) }
Utility to build & sign JWT token using HMAC signing method with (with symetric key) It is used for simple email validation
Click to show internal directories.
Click to hide internal directories.