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) {
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
} catch (e) {
|
||||
console.log("JWT decode failed", e)
|
||||
|
||||
Reference in New Issue
Block a user