Liking cljdoc? Tell your friends :D
Clojure only.

one-time.totp


get-tokenclj

(get-token secret)
(get-token secret
           {:keys [date time-step hmac-sha-type]
            :or {date (Date.) time-step 30 hmac-sha-type :hmac-sha-1}})

Return a TOTP token (Time-Based One-Time Password Algorithm) based on a secret and time, as specified in https://tools.ietf.org/html/rfc4226

Return a TOTP token (Time-Based One-Time Password Algorithm)
based on a secret and time, as specified in
https://tools.ietf.org/html/rfc4226
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close