vikunja/pkg/routes/api/shared
kolaente eac1fa2726 refactor(auth): extract shared auth/token business logic for v2 reuse
Pull the HTTP-independent core out of the v1 auth handlers so both
/api/v1 and the upcoming /api/v2 routes share one implementation:

- oauth2server: ExchangeToken and Authorize take plain inputs and return
  typed responses; HandleToken/HandleAuthorize keep binding + headers.
- pkg/routes/api/shared: AuthenticateLinkShare, RegisterUser,
  ResetPassword (+ session clear), RequestPasswordResetToken and
  ConfirmEmail, plus the shared UserRegister and LinkShareToken types.

v1 handlers now delegate to these; their wire output is unchanged.
2026-06-12 07:58:17 +00:00
..
admin_user.go feat(api/v2): add admin actions on /api/v2 2026-06-11 19:32:42 +00:00
auth.go refactor(auth): extract shared auth/token business logic for v2 reuse 2026-06-12 07:58:17 +00:00
auth_provider.go refactor(user): extract shared account orchestration into models/user/shared for v1+v2 2026-06-11 07:02:31 +00:00
info.go feat(api/v2): add public instance info endpoint 2026-06-11 20:07:43 +00:00