mirzemehdi / KMPAuth

Kotlin Multiplatform Authentication Library targetting android and iOS
https://mirzemehdi.com/KMPAuth/
Apache License 2.0
231 stars 19 forks source link

Suggestion: Replacing this.onClick() with rememberAuthButtonState() #30

Open mirzemehdi opened 5 months ago

mirzemehdi commented 5 months ago

I am thinking to replace this.onClick() method with


val authButtonState = rememberAuthButtonState()
authButtonState.click() // or authButtonState.signIn()

would be this better approach?

SuLG-ik commented 1 day ago

Good idea to rewrite API and make it like supporting auth flow based on states with signIn/signOut/etc. using different providers In my opinion solution with any container with scope.onClick() method seems like not native for compose