Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extend authentication to expose the idTokenChange event #710

Closed
3 of 13 tasks
cjhoward92 opened this issue Aug 29, 2024 · 1 comment · Fixed by #751
Closed
3 of 13 tasks

feat: extend authentication to expose the idTokenChange event #710

cjhoward92 opened this issue Aug 29, 2024 · 1 comment · Fixed by #751

Comments

@cjhoward92
Copy link

cjhoward92 commented Aug 29, 2024

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Functions
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

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
Copy link
Member

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.

@robingenz robingenz changed the title feat: extend authentication to expose the idTokenChange event feat: extend authentication to expose the idTokenChange event Aug 29, 2024
ebarooni added a commit that referenced this issue Nov 4, 2024
ebarooni added a commit that referenced this issue Nov 4, 2024
ebarooni added a commit that referenced this issue Nov 4, 2024
* refactors handling id token change in separate method on the web
ebarooni added a commit that referenced this issue Nov 4, 2024
ebarooni added a commit that referenced this issue Nov 4, 2024
ebarooni added a commit that referenced this issue Nov 4, 2024
ebarooni added a commit that referenced this issue Nov 6, 2024
* replaces user with an object with token property
ebarooni added a commit that referenced this issue Nov 6, 2024
ebarooni added a commit that referenced this issue Nov 6, 2024
ebarooni added a commit that referenced this issue Nov 6, 2024
* refactors handleIdTokenChange on ios and android
ebarooni added a commit that referenced this issue Nov 6, 2024
ebarooni added a commit that referenced this issue Nov 6, 2024
@ebarooni ebarooni linked a pull request Nov 6, 2024 that will close this issue
3 tasks
ebarooni added a commit that referenced this issue Nov 7, 2024
robingenz added a commit that referenced this issue Nov 7, 2024
* feat: extend authentication to support id token change event (#710)

* adds type definitions

* feat: extend authentication to support id token change event (#710)

* implements idTokenChange on the web

* feat: extend authentication to support id token change event (#710)

* refactors handling id token change in separate method on the web

* feat: extend authentication to support id token change event (#710)

* implements idTokenChange on ios

* feat: extend authentication to support id token change event (#710)

* implements idTokenChange on android

* feat: extend authentication to support id token change event (#710)

* ios pod install

* feat: extend authentication to support id token change event (#710)

* replaces user with an object with token property

* feat: extend authentication to support id token change event (#710)

* removes IdTokenChange interface

* feat: extend authentication to support id token change event (#710)

* refactors handleIdTokenChange on the web

* feat: extend authentication to support id token change event (#710)

* refactors handleIdTokenChange on ios and android

* feat: extend authentication to support id token change event (#710)

* removes todos

* feat: extend authentication to support id token change event (#710)

* adds changeset

* Update .changeset/chilled-pumpkins-kick.md

* Update packages/authentication/src/definitions.ts

* Update packages/authentication/src/definitions.ts

* feat: extend authentication to support id token change event (#710)

* implements suggested changes

---------

Co-authored-by: Robin Genz <mail@robingenz.dev>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@cjhoward92 @robingenz @ebarooni and others