feat: SW-162 Handled void scenario of isMFAInvalid fn
This commit is contained in:
@@ -67,6 +67,8 @@ export const middleware = auth(async (request) => {
|
|||||||
})
|
})
|
||||||
if (mfaToken?.exp) {
|
if (mfaToken?.exp) {
|
||||||
return false
|
return false
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("JWT decode failed", e)
|
console.log("JWT decode failed", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user