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

[FIREBASE_APP_CHECK] receive expired token instead of new token #16775

Open
1 task done
ChanakaWeerasinghe opened this issue Nov 26, 2024 · 1 comment
Open
1 task done
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: ios Issues / PRs which are specifically for iOS. plugin: app_check type: bug Something isn't working

Comments

@ChanakaWeerasinghe
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

App Check

Which platforms are affected?

iOS

Description

markdown
Copy code

Description

When using Firebase App Check in our application, we are intermittently receiving an expired token instead of a freshly issued one. This issue causes subsequent API requests to fail due to invalid or expired token errors.


Expected Behavior

The Firebase App Check service should return a new valid token that is not expired.


Actual Behavior

Firebase App Check intermittently returns a token that is already expired, causing failures in secure operations dependent on the token.

Reproducing the issue

Steps to Reproduce

  1. Integrate Firebase App Check with the app using the recommended setup.
  2. Request a new App Check token from the Firebase SDK (e.g., using getToken() or any similar API).
  3. Inspect the received token and attempt to validate or use it for a secure API call.
  4. Observe that the received token is already expired at the time of retrieval.

Firebase Core version

2.0.4

Flutter Version

3.0.7

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
firebase_crashlytics
Version: ^3.3.3

firebase_analytics
Version: ^10.4.3

firebase_messaging
Version: ^14.6.3

firebase_dynamic_links
Version: ^5.3.3

firebase_remote_config
Version: ^4.2.3

firebase_core
Version: ^2.14.0

firebase_performance
Version: 0.9.2+5

firebase_app_check
Version: ^0.2.0+1
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

```xc

</details>


### Additional context and comments

c. cx
@ChanakaWeerasinghe ChanakaWeerasinghe added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Nov 26, 2024
@SelaseKay SelaseKay added platform: ios Issues / PRs which are specifically for iOS. plugin: app_check labels Nov 27, 2024
@SelaseKay
Copy link
Contributor

Hi @ChanakaWeerasinghe, could you upgrade your plugin version to see if it resolves your issue?

@SelaseKay SelaseKay added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: ios Issues / PRs which are specifically for iOS. plugin: app_check type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants