Liking cljdoc? Tell your friends :D

co.gaiwan.oak.lib.totp

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.
raw docstring

hash-algclj

(hash-alg k)

qrcode-as-bytesclj

(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
raw docstring

qrcode-data-urlclj

(qrcode-data-url opts)

qrdataclj

(qrdata {:keys [label secret issuer digits period] :or {digits 6 period 30}})

secretclj

(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
raw docstring

verify-codeclj

(verify-code secret code)

Verify 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
Verify 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
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close