Removed unused variable
This commit is contained in:
4
index.js
4
index.js
@@ -27,9 +27,7 @@ class JWT {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
utf8ToUint8Array(str) {
|
utf8ToUint8Array(str) {
|
||||||
const chars = []
|
return Base64URL.parse(btoa(unescape(encodeURIComponent(str))))
|
||||||
str = btoa(unescape(encodeURIComponent(str)))
|
|
||||||
return Base64URL.parse(str)
|
|
||||||
}
|
}
|
||||||
async sign(payload, secret, alg = 'HS256') {
|
async sign(payload, secret, alg = 'HS256') {
|
||||||
if (payload === null || typeof payload !== 'object')
|
if (payload === null || typeof payload !== 'object')
|
||||||
|
|||||||
Reference in New Issue
Block a user