Documentation
¶
Index ¶
Constants ¶
View Source
const (
Issuer = "gophkeeper"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JWTManager ¶
type JWTManager struct {
// contains filtered or unexported fields
}
func NewJWTManager ¶
func NewJWTManager(config config.AuthConfig) *JWTManager
func (*JWTManager) Generate ¶
func (manager *JWTManager) Generate(user *models.User) (string, error)
func (*JWTManager) Verify ¶
func (manager *JWTManager) Verify(accessToken string) (*models.UserClaims, error)
Click to show internal directories.
Click to hide internal directories.