Skip to content

Commit a938445

Browse files
committed
fix(PSG-3369): Fixed iOS authorizeWith bridge method
1 parent 87819ec commit a938445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/PassageReactNative.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class PassageReactNative: NSObject {
202202

203203
// MARK: - Social Methods
204204

205-
@objc(aurhorizeWith:withResolver:withRejecter:)
205+
@objc(authorizeWith:withResolver:withRejecter:)
206206
func authorizeWith(
207207
connection: String,
208208
resolve: @escaping RCTPromiseResolveBlock,
@@ -214,7 +214,7 @@ class PassageReactNative: NSObject {
214214
reject("SOCIAL_AUTH_ERROR", "Invalid connection.", nil)
215215
return
216216
}
217-
guard let window = UIApplication.shared.delegate?.window else {
217+
guard let window = await UIApplication.shared.delegate?.window ?? nil else {
218218
reject("SOCIAL_AUTH_ERROR", "Could not access app window.", nil)
219219
return
220220
}

0 commit comments

Comments
 (0)