Skip to content

Sometimes old AppCheck tokens continue to be returned. #6734

Closed
@ishowta

Description

@ishowta

[REQUIRED] Describe your environment

  • Operating System version: _____
  • Browser version: _____
  • Firebase SDK version: 9.12.0
  • Firebase Product: appcheck

[REQUIRED] Describe the problem

If certain conditions are met, even if getToken is executed with forceRefresh, getToken will only return the same token, and if more than 1 hour, the token's expiration time, elapses, the application will crash due to the token expiration.
It is a small project, but according to sentry it appears to be occurring several times a day.

Debugging the internal code showed that the exchangeTokenPromise doesn't cleared and kept returning the exchangeTokenPromise return value.

related pull request: #6617

Translated with www.DeepL.com/Translator (free version)

Steps to reproduce:

Relevant Code:

// TODO(you): code here to reproduce the problem

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close