79123485

Date: 2024-10-24 20:16:39
Score: 1
Natty:
Report link

I can't express my feelings of your "new" credential manager flow. Not only it is much less functional than before (previous was not a masterpiece, sure). But in 2024 it is almost impossible to incorporate it into multiplatform application with dependency injection, and here are two main reasons:

  1. Need to pass context twice: CredentialManager.create() and credentialManager.getCredential().
  2. Need to know that second context must be ActivityContext, ApplicationContext is not enough. Not Jetpack Compose-friendly.

There is a library KMPAuth that tries to fix this. But it is a shame that Google's front end - Authentication - looks so ugly.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ilia Petukhov