Skip to content
Discussion options

You must be logged in to vote

Good question, the docs are thin on this. Here's the actual behavior:

When assessment requests happen:

  1. Cold start / new session — if initializeAppCheck finds no valid cached token, the SDK requests one from reCAPTCHA Enterprise. One assessment per fresh session.
  2. Proactive refresh — with isTokenAutoRefreshEnabled: true (the default), the SDK refreshes the token at ~50 % of TTL, not at expiry. A 7-day TTL refreshes at ~3.5 days → one additional assessment.
  3. Manual getToken(true) — force-refresh bypasses the cache.
  4. Multi-tab / incognito / new browser context — the token cache lives in IndexedDB and isn't shared across contexts. Opening your app in a new tab = a fresh assessment.

Why a 7-day…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarcVanDaele90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants