Versions in this module Expand all Collapse all v1 v1.0.0 Nov 10, 2023 Changes in this version + type OTP struct + Created time.Time + Key string + type RetentionMap map[string]OTP + func NewRetentionMap(ctx context.Context, retentionPeriod time.Duration) RetentionMap + func (rm RetentionMap) NewOTP() OTP + func (rm RetentionMap) Retention(ctx context.Context, retentionPeriod time.Duration) + func (rm RetentionMap) VerifyOTP(otp string) bool