You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let options =try?JSONDecoder().decode(WebBrowserOptions.self, from:JSONSerialization.data(withJSONObject: optionsDict))
15
15
else{
16
16
reject(ReactNativeWebBrowserErrorCode,"Invalid Argument: url or options is invalid.",ReactNativeWebBrowserError.invalidArgument("url or options"))
@@ -38,7 +38,7 @@ class NativeWebBrowser: NSObject {
38
38
guard
39
39
let authUrl =URL(string: authUrlStr asString),
40
40
let redirectUrl =URL(string: redirectUrlStr asString),
41
-
var options =try?JSONDecoder().decode(AuthSessionOptions.self, from:JSONSerialization.data(withJSONObject: optionsDict))
41
+
let options =try?JSONDecoder().decode(AuthSessionOptions.self, from:JSONSerialization.data(withJSONObject: optionsDict))
42
42
else{
43
43
reject(ReactNativeWebBrowserErrorCode,"Invalid Argument: authUrl or redirectUrl or options is invalid.",ReactNativeWebBrowserError.invalidArgument("authUrl or redirectUrl or options"))
0 commit comments