parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 865 forks source link

feat: Add `PFUser.unregisterAuthenticationDelegate` and allow to register delegate gracefully if another delegate is already registered #1711

Closed mtrezza closed 1 year ago

mtrezza commented 1 year ago

New Pull Request Checklist

Issue Description

SDK asserts that auth delegate can only be registered once.

Closes: #n/a

Approach

Gracefully deregister existing auth delegate and register new delegate instead of crashing.

TODOs before merging

n/a

parse-github-assistant[bot] commented 1 year ago

I will reformat the title to use the proper commit message syntax.

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this pull request!

parseplatformorg commented 1 year ago

🎉 This change has been released in version 2.1.0