supabase-community / supabase-kt

A Kotlin Multiplatform Client for Supabase.
https://supabase.com/docs/reference/kotlin/introduction
MIT License
410 stars 37 forks source link

[Question]: Support for Native Google Services Authentication in Multiplatform SDK #790

Open orelvis15 opened 3 days ago

orelvis15 commented 3 days ago

General info

What is your question?

Hello, good morning.

First of all, thank you for all the hard work on this SDK and on the project in general.

I’d like to ask if this multiplatform SDK supports authentication via Google Services by opening the native interface to select accounts configured on the device. I’ve been looking for this feature but haven't been able to find it in the SDK or its documentation.

Could you please let me know if this functionality is available and, if so, how to implement it? If it's not yet supported, are there any plans to add it in the future?

Thank you very much for your help and time!

Relevant log output (optional)

No response

jan-tennert commented 3 days ago

Hi, there is Compose Auth which has composables for signing in on Compose Multiplatform via Native SDKs. Note that only Android supports Native Google Auth and only iOS supports Native Apple Auth. All other combinations use supabase.auth.signInWith(Provider) (OAuth via the browser).

There is also a entry about Native Google Auth in the docs, which provides samples for Android only with credentials & Multiplatform with Compose Auth (which basically uses credentials under the hood for Android).