Skip to content

Conversation

@Osama-Fawzi
Copy link

We have encountered many cases where there is a retain cycle due to the fact that AppAuth is initialized as a singleton and the login presenting ViewController is referenced strongly by AppAuth.

So, we have switched the reference to be weak so it can be broken when ViewController is dismissed to be deallocated.

also kExpiryTimeTolerance is differentiated between debug and release.

@Osama-Fawzi Osama-Fawzi changed the title PR to resolved retain cycle when AppAuth has a strong reference to PresentingViewController PR to resolve retain cycle when AppAuth has a strong reference to PresentingViewController Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants