Skip to content

Commit

Permalink
fix: removed the possibility of concurrent webauth transactions to ha…
Browse files Browse the repository at this point in the history
…ndle continuation misuse
  • Loading branch information
desusai7 committed May 2, 2024
1 parent 5ca7f41 commit ae9b5d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Auth0/TransactionStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class TransactionStore {
return isResumed
}


Check warning on line 17 in Auth0/TransactionStore.swift

View workflow job for this annotation

GitHub Actions / Lint code with SwiftLint

Limit vertical whitespace to a single empty line; currently 2 (vertical_whitespace)
/// 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
}

Expand Down

0 comments on commit ae9b5d2

Please sign in to comment.