File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ var safariVC: SFSafariViewController?
106106``` swift
107107Task {
108108 do {
109- let url = try await client.getOAuthSignInURL (provider : Provider.google , redirectTo : URL (string : {Your Callback URL})! )
109+ let url = try await client.auth . getOAuthSignInURL (provider : Provider.google , redirectTo : URL (string : {Your Callback URL})! )
110110 safariVC = SFSafariViewController (url : url as URL)
111111 self .present (safariVC! , animated : true , completion : nil )
112112 } catch {
@@ -161,7 +161,7 @@ NotificationCenter.default.addObserver(
161161``` swift
162162Task {
163163 do {
164- let url = try await client.getOAuthSignInURL (provider : ** Provider.apple ** , redirectTo : URL (string : {Your Callback URL})! )
164+ let url = try await client.auth . getOAuthSignInURL (provider : ** Provider.apple ** , redirectTo : URL (string : {Your Callback URL})! )
165165 safariVC = SFSafariViewController (url : url as URL)
166166 self .present (safariVC! , animated : true , completion : nil )
167167 } catch {
You can’t perform that action at this time.
0 commit comments