Skip to content

Commit f7d89ff

Browse files
committed
fix doc issue - closes auth0#213
1 parent 78bf008 commit f7d89ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ encoded private key for RSA and ECDSA.
2626

2727
`options`:
2828

29-
* `algorithm` or `alg` (default: `HS256`)
29+
* `algorithm` (default: `HS256`)
3030
* `expiresIn`: expressed in seconds or a string describing a time span [rauchg/ms](https://github.com/rauchg/ms.js). Eg: `60`, `"2 days"`, `"10h"`, `"7d"`
3131
* `notBefore`: expressed in seconds or a string describing a time span [rauchg/ms](https://github.com/rauchg/ms.js). Eg: `60`, `"2 days"`, `"10h"`, `"7d"`
3232
* `audience`
@@ -52,7 +52,7 @@ Example
5252
var jwt = require('jsonwebtoken');
5353
var token = jwt.sign({ foo: 'bar' }, 'shhhhh');
5454
//backdate a jwt 30 seconds
55-
var older_token = jwt.sign({ foo: 'bar', iat: Math.floor(Date.now() / 1000) - 30 }, 'shhhhh');
55+
var older_token = jwt.sign({ foo: 'bar', iat: Math.floor(Date.now() / 1000) - 30 }, 'shhhhh');
5656

5757
// sign with RSA SHA256
5858
var cert = fs.readFileSync('private.key'); // get private key

0 commit comments

Comments
 (0)