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