For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
.signedIn.redirectTo in the options or set it on the client configuration. The URL must be in your project's redirect URLs.CancellationError.The third-party provider. The first argument, without a label.
`scopes` (an array of scopes to request), `redirectTo` (a URL to send the user to after they are confirmed), and `queryItems` (additional query items).
Shows the provider page and returns the callback URL. The default on Apple platforms is `ASWebAuthenticationSessionPresenter`. On other platforms you must pass one.
let session = try await supabase.auth.signInWithOAuth(
.github,
options: OAuthOptions(redirectTo: URL(string: "my-app-scheme://callback")!),
presenter: ASWebAuthenticationSessionPresenter(prefersEphemeralWebBrowserSession: true)
)
let session = try await supabase.auth.signInWithOAuth(
.github,
presenter: ClosurePresenter { url, callbackScheme in
// use url to start OAuth flow
// and return the callback URL that contains the auth code.
// ...
return resultURL
}
)
let flow = try await supabase.auth.oauthSignInURL(
.github,
options: OAuthOptions(redirectTo: URL(string: "my-app-scheme://callback")!)
)
// Open flow.url with your preferred method.
// When the app opens with the callback URL:
try await supabase.auth.handleRedirect(callbackURL)
let session = try await supabase.auth.signInWithOAuth(
.github,
options: OAuthOptions(scopes: ["repo", "gist", "notifications"])
)