Backup code that used together with 2FA
Backup code that used together with 2FA
(code->hash code)(create! db {:keys [_ identity-id code-hash]})(delete! db opts)(find-all db opts)(find-one db opts)(gen-code)(gen-codes)(generate! db {:keys [identity-id]})generate the backup codes and store their hash
generate the backup codes and store their hash
(update! db {:keys [id :used] :as opts})(valid-count db {:keys [identity-id]})(verify-code db {:keys [identity-id code]})verify code to identity-id
verify code to identity-id
(where-sql {:keys [id identity-id code-hash used]})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 |