A set of functions for implementing TOTP multi-factor authentication.
A set of functions for implementing TOTP multi-factor authentication.
(generate-secret)Generates a new 256-bit TOTP secret.
Generates a new 256-bit TOTP secret.
(qrcode uri
&
{:keys [width height margin image-type]
:or {width 250 height 250 margin 4 image-type "PNG"}})Returns a QR Code PNG image of the user's TOTP secret as a byte array.
Returns a QR Code PNG image of the user's TOTP secret as a byte array.
(uri service username secret)Given a service name, username, and TOTP secret, returns a TOTP URI.
Given a service name, username, and TOTP secret, returns a TOTP URI.
(verify secret token)Given a TOTP secret and token, verifies the token.
Given a TOTP secret and token, verifies the token.
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 |