Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 849db1d

Browse files
Merge pull request #1686 from butaminas/master
Apple sign in for iOS fix / workaround
2 parents faa9058 + c80aa95 commit 849db1d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/firebase.ios.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -947,12 +947,11 @@ firebase.login = arg => {
947947
appleIDRequest.nonce = sha256Nonce;
948948

949949
const authorizationController = ASAuthorizationController.alloc().initWithAuthorizationRequests([appleIDRequest]);
950-
const delegate = ASAuthorizationControllerDelegateImpl.createWithOwnerAndResolveReject(new WeakRef(this), resolve, reject);
950+
const delegate = ASAuthorizationControllerDelegateImpl.createWithOwnerAndResolveReject(this, resolve, reject);
951951
CFRetain(delegate);
952952
authorizationController.delegate = delegate;
953953

954-
authorizationController.presentationContextProvider = ASAuthorizationControllerPresentationContextProvidingImpl.createWithOwnerAndCallback(
955-
new WeakRef(this));
954+
authorizationController.presentationContextProvider = ASAuthorizationControllerPresentationContextProvidingImpl.createWithOwnerAndCallback(this);
956955

957956
authorizationController.performRequests();
958957

0 commit comments

Comments
 (0)