mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-23 15:11:36 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -4,6 +4,11 @@ import (
|
||||
"go.m3o.com/client"
|
||||
)
|
||||
|
||||
type Otp interface {
|
||||
Generate(*GenerateRequest) (*GenerateResponse, error)
|
||||
Validate(*ValidateRequest) (*ValidateResponse, error)
|
||||
}
|
||||
|
||||
func NewOtpService(token string) *OtpService {
|
||||
return &OtpService{
|
||||
client: client.NewClient(&client.Options{
|
||||
|
||||
Reference in New Issue
Block a user