1
0
This commit is contained in:
2024-02-21 21:03:44 +01:00
parent 91f30929da
commit cf24b34f63

View File

@@ -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
} }
} }