diff --git a/src/index.ts b/src/index.ts index 62c21e7..f912ce1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,6 +11,7 @@ import { ChallengeRequestIndicator, colorDepth, messageCategoryFromAuthenticationRequestType, + TransactionStatus, } from "./enums"; import { IBrowserData, @@ -161,7 +162,7 @@ export async function handleInitiateAuthentication( data: IInitiateAuthenticationResponseData, options: IChallengeWindowOptions, ) { - if (data.challengeMandated) { + if (data.challengeMandated || data.status === TransactionStatus.ChallengeRequired) { data.challenge = data.challenge || {}; if (!data.challenge.requestUrl) {