(create-challenge options)
Creates a challenge for the client to solve. options is a map of the following keys:
Creates a challenge for the client to solve. options is a map of the following keys: - :algorithm - algorithm for creating a digest of the challenge, default is SHA-256 - :max-number - highest random number used for generating the challenge. Default is 1e6 - :salt-len - length of the salt. Default is 12 - :expires - optional, recommended expiration time of the challenge validity in seconds - :hmac-key - required, the secret key for creating the HMAC signature - :salt - optional, custom salt to use instead of generating one - :number - optional, custom number to use instead of generating one - :params - optional, additional parameters to include in the salt
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close