Documentation
¶
Index ¶
- Variables
- type Config
- type CreateSignupChallengeInput
- type Service
- func (s *Service) CreateOpaqueChallenge(ctx context.Context, now time.Time, purpose domain.ChallengePurpose, ...) (uuid.UUID, error)
- func (s *Service) CreateSignupChallenge(ctx context.Context, in CreateSignupChallengeInput, now time.Time) (uuid.UUID, error)
- func (s *Service) ResendChallenge(ctx context.Context, challengeID uuid.UUID, now time.Time) error
- func (s *Service) VerifySignupChallenge(ctx context.Context, challengeID uuid.UUID, code string, ...) (*VerifySignupChallengeResult, error)
- type VerificationCodeService
- type VerifySignupChallengeResult
- type Worker
- type WorkerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrChallengeExpired = errors.New("challenge expired") ErrChallengeConsumed = errors.New("challenge already consumed") ErrTooManyAttempts = errors.New("too many verification attempts") ErrTooManyResends = errors.New("too many resend attempts") ErrResendTooSoon = errors.New("resend requested too soon") ErrInvalidVerificationCode = errors.New("invalid verification code") ErrUnsupportedChallengePurpose = errors.New("unsupported challenge purpose") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateOpaqueChallenge ¶
func (*Service) CreateSignupChallenge ¶
func (*Service) ResendChallenge ¶
func (*Service) VerifySignupChallenge ¶
type VerificationCodeService ¶
type VerificationCodeService struct {
// contains filtered or unexported fields
}
func NewVerificationCodeService ¶
func NewVerificationCodeService(store *store.Store, ttl time.Duration) *VerificationCodeService
func (*VerificationCodeService) GenerateCode ¶
type VerifySignupChallengeResult ¶
type VerifySignupChallengeResult struct {
Challenge domain.Challenge
Action domain.PendingSignupAction
}
Click to show internal directories.
Click to hide internal directories.