Fixed typo
This commit is contained in:
@@ -18,7 +18,7 @@ const jwt = require('@tsndr/cloudflare-worker-jwt')
|
|||||||
const token = jwt.sign({ name: 'John Doe', email: 'john.doe@gmail.com' }, 'secret')
|
const token = jwt.sign({ name: 'John Doe', email: 'john.doe@gmail.com' }, 'secret')
|
||||||
|
|
||||||
// Verifing token
|
// Verifing token
|
||||||
const isValid = jwt.verify(token, secret)
|
const isValid = jwt.verify(token, 'secret')
|
||||||
|
|
||||||
// Decoding token
|
// Decoding token
|
||||||
const payload = jwt.decode(token)
|
const payload = jwt.decode(token)
|
||||||
|
|||||||
Reference in New Issue
Block a user