Skip to content

Conversation

@hieuwu
Copy link
Contributor

@hieuwu hieuwu commented Oct 29, 2025

What kind of change does this PR introduce?

Native Google Oauth for iOS target with GoogleSignIn by using Swift in Kotlin with cinterop. SPM for deps management with spm4kmp

What is the current behavior?

Currently only support OAuth fallback with browser

What is the new behavior?

Support Native Google OAuth with GoogleSignIn iOS. If fails, fallback to browser

How to set up:
XCode: 26
Google Console
Supabase Dashboard

Feel free to include screenshots if it includes visual changes.

Additional context

Native.Google.OAuth.iOS.mp4

Issues might face:
openid/AppAuth-iOS#123
frankois944/spm4Kmp#206

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Oct 31, 2025
Added instructions for integrating GoogleSignIn.
@hieuwu hieuwu marked this pull request as ready for review November 2, 2025 14:00
@hieuwu hieuwu requested a review from jan-tennert as a code owner November 2, 2025 14:00
@hieuwu
Copy link
Contributor Author

hieuwu commented Nov 2, 2025

Tested in my personal project. Working fine.

Kudos.Snap.iOS.Google.Native.OAuth.mp4

@hieuwu
Copy link
Contributor Author

hieuwu commented Nov 2, 2025

Hey @jan-tennert , is it possible to publish a test artifact of this version of the lib so that I can test it end to end?

@jan-tennert
Copy link
Contributor

@hieuwu This should work:

//repo
maven("https://central.sonatype.com/repository/maven-snapshots/")
implementation("io.github.jan-tennert.supabase:compose-auth:3.2.7-SNAPSHOT")

@hieuwu
Copy link
Contributor Author

hieuwu commented Nov 3, 2025

@hieuwu This should work:

//repo
maven("https://central.sonatype.com/repository/maven-snapshots/")
implementation("io.github.jan-tennert.supabase:compose-auth:3.2.7-SNAPSHOT")

Tested following guideline in this update at supabase-community/supabase-kt#1093 .
It works now.

@hieuwu hieuwu requested a review from jan-tennert November 5, 2025 10:38
Copy link
Contributor

@jan-tennert jan-tennert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment on the debug logs, didn't comment all of them but all of them could be a little bit more expressive, doesn't have to be the suggestions 1:1

@hieuwu hieuwu requested a review from jan-tennert November 5, 2025 15:03
@fedsal
Copy link

fedsal commented Nov 7, 2025

publishhh

@jan-tennert jan-tennert merged commit fd8d872 into supabase-community:main Nov 7, 2025
10 checks passed
@jan-tennert
Copy link
Contributor

publishhh

I'll try to finish up the new version today, otherwise on the weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build file documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants