- Add missing comments for exported types and constants
- Remove unused Middleware struct and ManagerInterface references
- Fix all unused parameter warnings in test mocks and handlers
- Ensure all typecheck errors are resolved
- Update tests to use correct field names
All SSO auth code and tests are now lint-clean and typecheck clean.
- Fix TestRemoveRole to properly validate non-existent roles
- Update TestHelperFunctions to use superadmin role for user management tests
- Fix TestGetPermissionCategory to return 'unknown' for invalid permissions
- Update TestOAuth2Provider_ErrorHandling to expect errors only for custom providers
- Replace TestOAuth2Provider_ExchangeCode to use custom provider with mock HTTP servers
- Add proper validation in NewOAuth2Provider for required fields
- All 89 tests now pass successfully