Replace real captured JWE token with fake fixture

The REAL_JWE_TOKEN constant in otp-flow.test.ts contained an actual
token captured from a live Perplexity auth response. Replace with a
structurally valid but non-functional placeholder.
This commit is contained in:
Ivan Pereira
2026-02-23 10:51:40 +00:00
parent a01f0681a0
commit 4a49cbf930
+1 -1
View File
@@ -13,7 +13,7 @@ const originalOtp = process.env.PI_PERPLEXITY_OTP;
// --- Fixtures from real Perplexity responses (scripts/debug-login-dump.json) ---
/** Real JWE token structure: alg=dir, enc=A256GCM — NOT a JWT, opaque to us */
/** Fake JWE token — same structure as real Perplexity tokens (alg=dir, enc=A256GCM) but not a valid credential */
const REAL_JWE_TOKEN =
"eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..AAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAA";