)]}'
{
  "commit": "89b18090e4f48679f3dd8754dc2fa986fdf98f8b",
  "tree": "3447e9b6e01c3add4d847cdf6e3924f1aa75d437",
  "parents": [
    "1f79a4b6826ae2f0241c0dcfba3afee0e23f7c80"
  ],
  "author": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Fri Nov 20 12:50:16 2026 -0500"
  },
  "committer": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Fri Nov 20 14:02:20 2026 -0500"
  },
  "message": "checker: expose the accepted token after jwt_checker_verify()\n\nOnce jwt_checker_verify() or jwt_checker_verify_detached() returned 0,\nan application could not read the token it had accepted: its claims,\nits protected header, or the algorithm that verified it when the key\nhas no \"alg\". The jwt_t holding them was freed before the call\nreturned, and the callbacks that do see it run while the token may\nstill be rejected.\n\nTwo checker getters now expose it:\n\n- jwt_checker_verified_jwt() returns the jwt_t the last verify\n  accepted, owned by the checker until its next verify call (even one\n  that fails at once) or jwt_checker_free(). It holds the claims (an\n  empty set for an unencoded \"b64\":false payload) and, for a Compact or\n  Flattened token, the protected header, with jwt_get_alg() giving the\n  verified algorithm. A General JWS JSON token has a header per\n  signature, so its jwt_t has an empty header and JWT_ALG_INVAL.\n\n- jwt_checker_sig_header_get() reads a protected-header member of one\n  signature, by index, as jwt_header_get() does, but only for a\n  signature that verified in an accepted token.\n\nNeither returns a signature\u0027s unprotected \"header\", which is not\nintegrity protected. Each verify releases the previous token before it\ndoes anything else, so nothing is readable after any failed verify\n(even where jwt_checker_sig_verified() reports 1, e.g. an expired token\nor JWT_VERIFY_POLICY_ALL not met), and a verify or jti callback calling\neither getter gets nothing.\n\nThe accepted Compact token is the jwt_t the single-key path already\nbuilt; on the keyring and JSON paths the transient jwt_t is kept and\nthe one signature\u0027s decoded protected header moves into it, so nothing\nis copied.\n\nThe jwt_t accessor docs no longer refer to a jwt_create() that does not\nexist: they say where a jwt_t comes from. The verify, jti and cnf docs\npoint at the new getters.\n\nCloses #362\n\nCo-Authored-By: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e\nSigned-off-by: Ben Collins \u003cbcollins@libjwt.io\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d93febd8c0060f1d98dcb0a0b6d13b8fe8f9bf21",
      "old_mode": 33188,
      "old_path": "CMakeLists.txt",
      "new_id": "5eb6d77a5681081055fdbd5045c06be691ddb939",
      "new_mode": 33188,
      "new_path": "CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "1f8509c4080bc5beb7cc4335c3b442265d96d25b",
      "old_mode": 33188,
      "old_path": "include/jwt.h",
      "new_id": "2a8156f672ff71502825a490aba0855badd97ca9",
      "new_mode": 33188,
      "new_path": "include/jwt.h"
    },
    {
      "type": "modify",
      "old_id": "97760257eae31a59f9d8983133f596d7cea048b1",
      "old_mode": 33188,
      "old_path": "libjwt/jwt-common.c",
      "new_id": "6250a8d8bdb90cba02826b896f15198e57a944de",
      "new_mode": 33188,
      "new_path": "libjwt/jwt-common.c"
    },
    {
      "type": "modify",
      "old_id": "35b576c51276a6bbe1d28a5e2aff8a833f129c7d",
      "old_mode": 33188,
      "old_path": "libjwt/jwt-private.h",
      "new_id": "64e1d29fa83cac9b72fca2813d6ad320ea62f7fa",
      "new_mode": 33188,
      "new_path": "libjwt/jwt-private.h"
    },
    {
      "type": "modify",
      "old_id": "ac60b6339e462ce2049114a607aa4d42e5660d92",
      "old_mode": 33188,
      "old_path": "libjwt/jwt-verify.c",
      "new_id": "9b1db47153092018152d9e9cff8a7932ea143581",
      "new_mode": 33188,
      "new_path": "libjwt/jwt-verify.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "29274ce22387b41cdee20e513392de0c3c194f52",
      "new_mode": 33188,
      "new_path": "tests/jwt_verified.c"
    }
  ]
}
