This commit is contained in:
2024-11-21 19:33:36 -05:00
parent b790dc3013
commit 851d55288b
2 changed files with 2 additions and 9 deletions

View File

@@ -151,14 +151,6 @@ func getCode(configName string) *C.char {
return cCode
}
//export getCodeFromI
func getCodeFromI(index int) *C.char {
code := configs[index].TOTP()
cCode := C.CString(code)
runtime.KeepAlive(code)
return cCode
}
//export getTimeRemaining
func getTimeRemaining(n int) uint64 {
return uint64(n) - (uint64(time.Now().Unix()) % uint64(n))