Junie: add TOTP authentication
This commit is contained in:
14
data/totp_test.go
Normal file
14
data/totp_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package data
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/gokyle/twofactor"
|
||||
)
|
||||
|
||||
func TestTOTPBasic(t *testing.T) {
|
||||
// Just test that we can import and use the package
|
||||
totp := twofactor.TOTP{}
|
||||
fmt.Printf("TOTP: %+v\n", totp)
|
||||
}
|
||||
Reference in New Issue
Block a user