mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
Allow consumers to inject custom claims into CIBA access tokens via a new buildAccessTokenClaims option. The hook receives the full CibaRequest before the row is deleted, fixing the timing issue where custom claim builders could not access request data at token issuance time. Reorders the grant handler: build claims → delete row → issue tokens.