otpservice

package
v0.0.0-...-fd201ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTPCacheService

type OTPCacheService struct {
	// contains filtered or unexported fields
}

func NewOTPCache

func NewOTPCache(otpConfig config.OTP, cache port.OTPCache) OTPCacheService

func (OTPCacheService) Set

func (r OTPCacheService) Set(ctx context.Context, key string, otp string) error

func (OTPCacheService) SetForgetPassword

func (r OTPCacheService) SetForgetPassword(ctx context.Context, key string, otp string) error

func (OTPCacheService) Used

func (r OTPCacheService) Used(ctx context.Context, key string) error

func (OTPCacheService) UsedForgetPassword

func (r OTPCacheService) UsedForgetPassword(ctx context.Context, key string) error

func (OTPCacheService) Validate

func (r OTPCacheService) Validate(ctx context.Context, key string, otp string) error

func (OTPCacheService) ValidateForgetPassword

func (r OTPCacheService) ValidateForgetPassword(ctx context.Context, key string, otp string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL