You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reverted Fixed expires verification (checks for existence of the parameter and format) as it can cause unexpected verification results. In terms of security of the verification, this check isn't needed as the expires attributed is signed.
The salt now includes custom parameters in a URL-encoded query string, allowing to pass custom data and expiration time in a standardized format.
The createChallenge function now accepts expires: Date parameter, appending ?expires= parameter to the salt (as a Unix timestamp in seconds).
The verifySolution function now automatically verifies the expiration of the challenge if the salt contains ?expires= parameter. This feature can be disabled by utilizing checkExpires: false as 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.