clean up
This commit is contained in:
@@ -280,9 +280,9 @@ export async function verify(token: string, secret: string | JsonWebKey, options
|
||||
if (!algorithm)
|
||||
throw new Error('algorithm not found')
|
||||
|
||||
try {
|
||||
const { payload } = decode(token)
|
||||
|
||||
try {
|
||||
if (!payload)
|
||||
throw new Error('PARSE_ERROR')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user