mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
📝 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:
parent
793b6d8e17
commit
4599db54a4
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue