OAuth2 OIDC
POST /oauth2/token
better-auth endpoint /oauth2/token (mounted under /api/auth).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
[key: string]?unknown
Response Body
application/json
curl -X POST "https://example.com/api/auth/oauth2/token" \ -H "Content-Type: application/json" \ -d '{ "property1": null, "property2": null }'{}Is this page helpful?