1
0
This commit is contained in:
2023-11-16 15:52:03 +01:00
parent 331bcbbe62
commit 2f9de2ee77

View File

@@ -280,9 +280,9 @@ export async function verify(token: string, secret: string | JsonWebKey, options
if (!algorithm) if (!algorithm)
throw new Error('algorithm not found') throw new Error('algorithm not found')
try {
const { payload } = decode(token) const { payload } = decode(token)
try {
if (!payload) if (!payload)
throw new Error('PARSE_ERROR') throw new Error('PARSE_ERROR')