Changes:
- The
saltnow includes custom parameters in a URL-encoded query string, allowing to pass custom data and expiration time in a standardized format. - The
createChallengefunction now acceptsexpires: Dateparameter, appending?expires=parameter to the salt (as a Unix timestamp in seconds). - The
verifySolutionfunction now automatically verifies the expiration of the challenge if the salt contains?expires=parameter. This feature can be disabled by utilizingcheckExpires: falseas the optional third argument. - Introduced the new function
extractParams, enabling the extraction of custom parameters from the base64-encoded payload, payload object, or challenge object.