mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
Only the cold-start path of verifyAndParseJWT was tested; every other test served an empty JWKS, so no token was ever verified and a change that weakened verification would have passed. Cover a valid token and the ones that must be refused: expired, not yet valid, signed by another key, unknown or missing kid, alg none, and HS256 keyed with the RSA public key. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>