Skip to content

App Check works at first but fails to reconnect after sleep/background #8520

@AmilKey

Description

@AmilKey

Operating System

Mac OS

Environment (if applicable)

Chrome 129

Firebase SDK Version

10.13.2

Firebase SDK Product(s)

AppCheck

Project Tooling

firebase 10.13.2
Ember.js 5.9.9
"firebase-admin": "^12.5.0",
"firebase-functions": "^6.0.1",

Detailed Problem Description

When leaving the webapp tab open and idle, the app often runs into a 403 error in POST request to exchange AppCheck token ("App attestation failed." "PERMISSION DENIED"), followed by a warning: @firebase/app-check: AppCheck: Requests throttled due to 403 error. Attempts allowed again after 01d:00m:00s (appCheck/throttled).

I see a lot of issues here but I can't find how to resolve this problem

#6708
#6373
#7371
#7779

the best solution I see is not to use the App Check service at all

Steps and code to reproduce issue

Change the App Check TTL in the console to 30 minutes.

Sleep mode: Leaving the website open in a browser on a notebook that goes into sleep mode without shutting down. Upon resuming, the 403 error is present.

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