We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87819ec commit a938445Copy full SHA for a938445
ios/PassageReactNative.swift
@@ -202,7 +202,7 @@ class PassageReactNative: NSObject {
202
203
// MARK: - Social Methods
204
205
- @objc(aurhorizeWith:withResolver:withRejecter:)
+ @objc(authorizeWith:withResolver:withRejecter:)
206
func authorizeWith(
207
connection: String,
208
resolve: @escaping RCTPromiseResolveBlock,
@@ -214,7 +214,7 @@ class PassageReactNative: NSObject {
214
reject("SOCIAL_AUTH_ERROR", "Invalid connection.", nil)
215
return
216
}
217
- guard let window = UIApplication.shared.delegate?.window else {
+ guard let window = await UIApplication.shared.delegate?.window ?? nil else {
218
reject("SOCIAL_AUTH_ERROR", "Could not access app window.", nil)
219
220
0 commit comments