A library generate, verify time-based one time passwords for Multi-Factor Authentication.
A library generate, verify time-based one time passwords for Multi-Factor Authentication.
(hash-alg k)(qrcode-as-bytes {:keys [label secret] :as opts})Returns the QR image which used to transfer the shared secret
Returns the QR image which used to transfer the shared secret
(qrcode-data-url opts)(qrdata {:keys [label secret issuer digits period] :or {digits 6 period 30}})(secret hash-alg size)Generate a shared secret. A shared secret is to be given to the user to add to an MFA application
Generate a shared secret. A shared secret is to be given to the user to add to an MFA application
(verify-code secret code)Verify TOTP code supplied by the user from their Authenticator app.
secret is a self-contained hash-alg+secret stringcode code supplied by user, typically 6 digit stringVerify TOTP code supplied by the user from their Authenticator app. - `secret` is a self-contained hash-alg+secret string - `code` code supplied by user, typically 6 digit string
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |