fix(authentication): fixed terminal state persistence for redirect response (#8916)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sahkal Poddar
2025-08-18 13:17:21 +05:30
committed by GitHub
parent 8be69c267e
commit 375e9be9fd
2 changed files with 33 additions and 4 deletions

View File

@ -7655,6 +7655,10 @@ impl TransactionStatus {
Self::ChallengeRequired | Self::ChallengeRequiredDecoupledAuthentication
)
}
pub fn is_terminal_state(self) -> bool {
matches!(self, Self::Success | Self::Failure)
}
}
#[derive(