jojo/routers/api
Nils Goroll 180bd488e1 chore: Add JWT() method for convenience and clarity (#11067)
This slightly simplifies calling code by centralizing the common 3-liner to create a JWT from claims, signed by a key.

But more importantly, it reduces the risk of `key.PreProcessToken()` being forgotten, which will become relevant in upcoming PRs:

`key.PreProcessToken()` adds the key id to the JWT header, which is important to efficiently validate tokens when multiple validation keys are supported (that is not the case yet)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11067
Co-authored-by: Nils Goroll <nils.goroll@uplex.de>
Co-committed-by: Nils Goroll <nils.goroll@uplex.de>
2026-02-07 01:01:30 +01:00
..
actions chore: Add JWT() method for convenience and clarity (#11067) 2026-02-07 01:01:30 +01:00
forgejo/v1 fix: /api/forgejo/v1/version Content-Type error (#9897) 2025-11-05 17:35:50 +01:00
packages Auto-link container images to repository (#10617) 2026-01-11 23:50:21 +01:00
shared feat: Global 2FA enforcement (#8753) 2025-08-15 10:56:45 +02:00
v1 fix searching issues by org labels via api (#11109) 2026-02-03 04:11:30 +01:00