Commit Graph
2 Commits
Author SHA1 Message Date
Andrew Heard 958f0212cf fix(debug): only track registration state for local debug token (#135)
The debug provider stores a per-service "registered" flag so it stops
logging the local debug token's registration instructions once that
token has been exchanged successfully. Exchanges using the
AppCheckDebugToken or FIRAAppCheckDebugToken environment variable also
updated the flag, even though the local token wasn't used:

- On success, the local token was marked as registered, so after the
  variable was removed the SDK fell back to an unregistered token
  without logging how to register it.
- On failure, the flag was cleared, so an already registered local
  token logged its registration instructions again.

Only set or clear the flag when the local token was the one exchanged;
serverUnreachable failures still leave it untouched. There are no
public API changes.

Also document all parameters of the public initializer, and fix the
test tearDown, which only removed the registered key's prefix and let
the flag leak between tests.
2026-11-05 16:47:46 -05:00
c7eb17e554 Rewrite AppCheckCore in Swift (#111)
Signed-off-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
Co-authored-by: Nick Cooke <nickcooke@google.com>
2026-09-23 18:22:08 -04:00