From f393ab058860480d44e4188642014db5374959b9 Mon Sep 17 00:00:00 2001 From: David Frank Date: Mon, 27 Apr 2015 16:18:07 +0800 Subject: [PATCH] Fix typo in readme secretLength appear to be 18 by default. and it should be `tokenize` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4213cb3..36cf0fc 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@ var valid = csrf.verify(secret, token) ### Options -- `secretLength: 24` - the byte length of the secret key +- `secretLength: 18` - the byte length of the secret key - `saltLength: 8` - the string length of the salt -- `tokensize: (secret, salt) => token` - a custom token creation function +- `tokenize: (secret, salt) => token` - a custom token creation function #### csrf.secret([cb])