From 0fdcd779ef34cc7c106217c3e4b7f2cdbf62b658 Mon Sep 17 00:00:00 2001 From: Ari Palo Date: Fri, 1 Apr 2022 07:32:45 +0300 Subject: [PATCH] docs: IsAvailable() --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index a433b1e..0413ec9 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,21 @@ Once initialized, you may perform operations on `oathAccounts` such as [`List`](
+## Check if Device Available + +To verify if the configured Yubikey device is connected & available: +```go +IsAvailable := oathAccounts.IsAvailable() +fmt.Println(IsAvailable) +``` + +Example Go output: +```go +true +``` + +
+ ## List Accounts List OATH accounts configured in the Yubikey device: