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
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,10 @@ The length of the secret to generate, in bytes. Note that the secret is
59
59
passed around base-64 encoded and that this length refers to the underlying
60
60
bytes, not the length of the base-64 string. Defaults to `18` bytes.
61
61
62
+
##### hashAlgorithm
63
+
64
+
The algorithm to be used in generating hash digests. "*The algorithm is dependent on the available algorithms supported by the version of OpenSSL on the platform*" ([see Node crypto.createHash documentation](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options))
65
+
62
66
#### tokens.create(secret)
63
67
64
68
Create a new CSRF token attached to the given `secret`. The `secret` is a
0 commit comments