From ae9b5d29b99d0f4fe24f70fed82bf7bde1d7b78e Mon Sep 17 00:00:00 2001 From: Sai Venkat Desu Date: Thu, 2 May 2024 17:12:30 +0530 Subject: [PATCH] fix: removed the possibility of concurrent webauth transactions to handle continuation misuse --- Auth0/TransactionStore.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Auth0/TransactionStore.swift b/Auth0/TransactionStore.swift index 260cae8b..8d2512c1 100644 --- a/Auth0/TransactionStore.swift +++ b/Auth0/TransactionStore.swift @@ -14,7 +14,10 @@ class TransactionStore { return isResumed } + + /// Calling store would cancel existing transactions if any, and then would set the supplied transaction as the current one. func store(_ transaction: AuthTransaction) { + self.cancel() self.current = transaction }