clean up
This commit is contained in:
13
src/index.ts
13
src/index.ts
@@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
textToArrayBuffer,
|
textToArrayBuffer,
|
||||||
arrayBufferToBase64Url,
|
arrayBufferToBase64Url,
|
||||||
base64UrlToArrayBuffer,
|
base64UrlToArrayBuffer,
|
||||||
textToBase64Url,
|
textToBase64Url,
|
||||||
importKey,
|
importKey,
|
||||||
decodePayload
|
decodePayload
|
||||||
} from "./utils"
|
} from "./utils"
|
||||||
|
|
||||||
if (typeof crypto === 'undefined' || !crypto.subtle)
|
if (typeof crypto === 'undefined' || !crypto.subtle)
|
||||||
@@ -214,7 +214,6 @@ export async function verify(token: string, secret: string | JsonWebKey | Crypto
|
|||||||
} catch(err) {
|
} catch(err) {
|
||||||
if (options.throwError)
|
if (options.throwError)
|
||||||
throw err
|
throw err
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user