File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ let verification = objectHmac.verifyHmac(obj, key);
45
45
The verification would fail and return ` false ` , if...
46
46
- The object to be verified doesn't provide a HMAC to check against
47
47
- The object was manipulated: attributes were changed, added or deleted (deep-inspection including all nested objects/arrays)
48
- - Tha HMAC was manipulated
48
+ - The HMAC was manipulated
49
49
50
50
### Only calculate HMAC for an object
51
51
@@ -60,12 +60,12 @@ let obj = {
60
60
hobbies: [' sports' , ' travelling' ]
61
61
};
62
62
63
- let hmac = objectHmac .calculateHmac (obj, secret );
63
+ let hmac = objectHmac .calculateHmac (obj, key );
64
64
65
65
// 37c2e448b6f4a72c9d8abc9a1ab6cada602c3785148caeeed5498ed065ddc69f
66
66
```
67
67
68
- ## API
68
+ ## API - * under construction *
69
69
70
70
### createHmac(obj, key, hmacAttribute = '__ hmac')
71
71
You can’t perform that action at this time.
0 commit comments