Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface {
CheckJTI(ctx context.Context, jti string) (bool, error)
InvalidateJTI(ctx context.Context, jti string, exp time.Time) error
}
func NewRepository ¶
func NewRepository(rdb *redis.Client) Repository
type Service ¶
type Service interface {
CheckJTI(ctx context.Context, jti string) (bool, error)
InvalidateJTI(ctx context.Context, jti string, exp time.Time) error
}
Service is the interface for auth service
func NewService ¶
func NewService(repository Repository) Service
NewService creates a new auth service
Click to show internal directories.
Click to hide internal directories.