1
0

Fixed typo

This commit is contained in:
2021-02-08 17:00:57 +01:00
parent 2985ee75b4
commit c233dbcec8

View File

@@ -18,7 +18,7 @@ const jwt = require('@tsndr/cloudflare-worker-jwt')
const token = jwt.sign({ name: 'John Doe', email: 'john.doe@gmail.com' }, 'secret')
// Verifing token
const isValid = jwt.verify(token, secret)
const isValid = jwt.verify(token, 'secret')
// Decoding token
const payload = jwt.decode(token)