Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HS256Service ¶
type HS256Service struct {
Key []byte
}
HS256Service used to sing and check jwt tokens
func (*HS256Service) Check ¶
func (service *HS256Service) Check(payload string) ([]jwtservices.Tuple, error)
Check using HS256
func (*HS256Service) Sign ¶
func (service *HS256Service) Sign(tuples ...jwtservices.Tuple) (string, error)
Sign using HS256
Click to show internal directories.
Click to hide internal directories.