📝 docs(mana-core-auth): add comment explaining OAuth token form-urlencoded support

Documents that the token endpoint accepts both JSON and form-urlencoded
bodies per OAuth2 spec, with form data parsed by body-parser middleware.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-01 04:12:16 +01:00
parent 793b6d8e17
commit 4599db54a4

View file

@ -53,6 +53,9 @@ export class OidcController {
/**
* Token Endpoint (Better Auth native path)
*
* Accepts both JSON and form-urlencoded body (OAuth2 spec requires form-urlencoded).
* The body-parser middleware in main.ts parses form data into req.body object.
*/
@Post('api/auth/oauth2/token')
async tokenOauth2(@Req() req: Request, @Res() res: Response) {