File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,8 +114,11 @@ otp, err := gen.Next()
114114
115115Now that you have an [ ` OTP ` ] ( moths/otp ) , you can use its functions
116116
117- - ` Validate(code string) bool `
118- - Will validate against another token - Should become emojies in the future
117+ - ` Validate(moth string) bool `
118+ - Will validate a moth directly (the pattern of emojies)
119+ - ` ValidateToken(code string) bool `
120+ - Will validate OTP code
121+ - You'll need to expose the code for your user too, for this
119122- ` Token() string `
120123 - Returns the token - for whatever reason that might be needed
121124- ` String() string `
@@ -130,7 +133,7 @@ Now that you have an [`OTP`](moths/otp), you can use its functions
130133To validate, you'll need both the ` OTP ` and the generator
131134
132135``` go
133- ok := gen.Validate (otp.Token ())
136+ ok := gen.Validate (otp.String ())
134137```
135138
136139## example
@@ -144,6 +147,9 @@ Check out [`main.go`](main.go) for an example
144147
145148## history ✍
146149
150+ - [ ` v2.2.0 ` ] ( https://github.com/Mobilpadde/moths/tree/v2.2.0 ) 💘
151+ - [ ` v2.1.0 ` ] ( https://github.com/Mobilpadde/moths/tree/v2.1.0 )
152+ - [ ` v2.0.0 ` ] ( https://github.com/Mobilpadde/moths/tree/v2.0.0 )
147153- [ ` v1.0.0 ` ] ( https://github.com/Mobilpadde/moths/tree/v1.0.0 )
148154- [ ` v0.1.0 ` ] ( https://github.com/Mobilpadde/moths/tree/v0.1 )
149155
You can’t perform that action at this time.
0 commit comments