Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSignatureInvalid = "invalid signaute"
)
Functions ¶
Types ¶
type TokenAdaptor ¶
type TokenAdaptor struct {
// contains filtered or unexported fields
}
func (*TokenAdaptor) GenerateJWT ¶
func (a *TokenAdaptor) GenerateJWT(id string, email string) (string, error)
func (*TokenAdaptor) VerifyJWT ¶
func (a *TokenAdaptor) VerifyJWT(tkn string) bool
Click to show internal directories.
Click to hide internal directories.