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: Add onIdTokenChanged Event #746

Closed
3 of 13 tasks
ewwwgiddings opened this issue Oct 25, 2024 · 2 comments
Closed
3 of 13 tasks

feat: Add onIdTokenChanged Event #746

ewwwgiddings opened this issue Oct 25, 2024 · 2 comments

Comments

@ewwwgiddings
Copy link
Contributor

Plugin(s)

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

Current problem

I want a way to handle when the token has been refreshed. Currently since version 4 the authStateChanged event does not handle this.

Preferred solution

As noted in the link in the Current Problem section I want the ability to use onIdTokenChanged

Alternative options

Set up some sort of timed refresh and set it after the result of that.

Is there a way to get the token that is stored locally in a cross platform way? That is what I am wanting to do and was seeing this as a solution for.

Additional context

As noted in the links above this functionality changed in version 4. This would be to add that functionality to all environments so that users can react to token refreshes as well as sign in and sign out.

I am finding that using the current methods available to get the current token is inconsistent across environments and/or requires an HTTP request to get the token.

Before submitting

@ewwwgiddings
Copy link
Contributor Author

Relates to: #745

@ewwwgiddings
Copy link
Contributor Author

Closing because I didn't see this PR: #709

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant