Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: add github example for Swift (#30062)

Guilherme Souzae3370035c400
diff --git a/apps/docs/content/guides/auth/social-login/auth-github.mdx b/apps/docs/content/guides/auth/social-login/auth-github.mdx
index 70b3e077f61..db3e01abe02 100644
--- a/apps/docs/content/guides/auth/social-login/auth-github.mdx
+++ b/apps/docs/content/guides/auth/social-login/auth-github.mdx
@@ -77,6 +77,20 @@ Future<void> signInWithGithub() async {
}
```
+</TabPanel>
+<TabPanel id="swift" label="Swift">
+
+When your user signs in, call [signInWithWithOAuth](/docs/reference/swift/auth-signinwithoauth) with `.github` as the `Provider`:
+
+```swift
+func signInWithGithub() async throws {
+ try await supabase.auth.signInWithOAuth(
+ provider: .github,
+ redirectTo: URL(string: "my-custom-scheme://my-app-host")
+ )
+}
+```
+
</TabPanel>
<TabPanel id="kotlin" label="Kotlin">