capawesome-team / capacitor-firebase

⚡️ Firebase plugins for Capacitor. Supports Android, iOS and the Web.
https://capawesome.io/plugins/firebase/
Apache License 2.0
398 stars 102 forks source link

feat: extend authentication to expose the `idTokenChange` event #710

Open cjhoward92 opened 2 months ago

cjhoward92 commented 2 months ago

Plugin(s)

Current problem

The idTokenChange event is not exposed. Also. on iOS, the auth change listener isn't correct. It should be like so https://firebase.google.com/docs/auth/ios/manage-users

Preferred solution

Do the things.

Alternative options

There are none - we need this.

Additional context

Before submitting

robingenz commented 2 months ago

Also. on iOS, the auth change listener isn't correct.

What exactly is wrong with it? This listener is already used by many apps without any problems.