otp

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EmojiBytes = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type OTP

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

func NewOTP

func NewOTP(token string, amount int, em emojies.Emojies) (OTP, error)

func (OTP) Slice

func (otp OTP) Slice() []string

func (OTP) SpacedString

func (otp OTP) SpacedString() string

func (OTP) String

func (otp OTP) String() string

func (OTP) Token

func (otp OTP) Token() string

func (OTP) Validate

func (otp OTP) Validate(moth string) bool

func (OTP) ValidateToken

func (otp OTP) ValidateToken(token string) bool

Jump to

Keyboard shortcuts

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