🐛 fix(mana-core-auth): OIDC token exchange now works with body-parser

- Removed debug logging that exposed sensitive client_secret in production logs
- The body-parser middleware in main.ts correctly handles form-urlencoded token requests
- handleOidcRequest properly converts parsed body to URLSearchParams for Better Auth
This commit is contained in:
Till-JS 2026-02-01 12:28:41 +01:00
parent 5a8e20e0f2
commit f0cf1bc804
2 changed files with 0 additions and 11 deletions

View file

@ -59,9 +59,6 @@ export class OidcController {
*/
@Post('api/auth/oauth2/token')
async tokenOauth2(@Req() req: Request, @Res() res: Response) {
console.log('[Token Endpoint] Content-Type:', req.headers['content-type']);
console.log('[Token Endpoint] Body:', req.body);
console.log('[Token Endpoint] Body keys:', Object.keys(req.body || {}));
return this.handleOidcRequest(req, res);
}