You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: extract token generation logic to its own package (#2135)
## Summary
Extracted common token operations from the existing `/token` endpoint to
a new `internal/tokens` package to enable code reuse for the upcoming
`/oauth/token` endpoint implementation.
## Backward Compatibility
- Type aliases: AccessTokenClaims = tokens.AccessTokenClaims in
`internal/api/token.go` to keep the changes low
- Method preservation: All existing API methods work unchanged
- Feature parity: AsRedirectURL(), hooks, validation - everything
preserved
Note on request object dependency: The service requires the HTTP
`request` object for audit log entries (`models.NewAuditLogEntry`).
While ideally the service would extract only needed context, the current
audit logging implementation requires the full request object.
0 commit comments