Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSigningMethod = jwt.SigningMethodHS256
View Source
var ErrInvalidToken = errors.New("invalid token")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { UserID uuid.UUID `json:"user_id"` Type Type `json:"type"` jwt.StandardClaims }
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(method jwt.SigningMethod, secret string, accessTokenTTL time.Duration, repo Repository) *Service
func (*Service) IssueAccessToken ¶
Click to show internal directories.
Click to hide internal directories.