touchlab / DroidconKotlin

Kotlin Multiplatfom app for Droidcon Events
https://touchlab.co
Apache License 2.0
1.05k stars 82 forks source link

Adding Firebase Auth #222

Closed KevinSchildhorn closed 3 months ago

KevinSchildhorn commented 7 months ago

Adding support for Firebase Authentication

Adds a Login/Logout button in the settings screen, that will authenticate with google sign-in using Firebase. Then the user state is sent to the common code, to be used later.

Shared Code

Platform Code

TODO

We are unsure about saving the clientID in public or as a secret. In android it is already a secret, however in iOS it's added in a URLScheme so it's more challenging to keep secret. Will look into this more.

Proof

Note for Android emulator you'll need to be signed into your emulator

Simulator Screen Recording - iPhone 15 Pro - 2024-03-28 at 12 29 38

Screen_recording_20240328_124442.webm

KevinSchildhorn commented 7 months ago

Updated style

signed in signed out
android Screenshot_20240402_105704 Screenshot_20240402_105712
ios Simulator Screenshot - iPhone 15 Pro - 2024-04-02 at 11 13 28 Simulator Screenshot - iPhone 15 Pro - 2024-04-02 at 11 06 57