Internal OAuth
Internal OAuth

Authorize

Authenticate a user with email/password and mint an OAuth authorization code (the /oauth/authorize consent page's submit).

Replaces the direct-DB Next.js route (API proxy sweep): password verification reuses core.auth.verify_password — the same helper and check chain as /api/auth/login — and the code INSERT is the store-code logic with redirect_uri_provided_explicitly=true. Protected by the internal key like store-code; the user-facing credential check is the body itself.

post/api/internal/oauth/authorize

Request

  • Base URL: https://api.thebetterhire.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.thebetterhire.ai/api/internal/oauth/authorize
  • Auth: none declared

Request body

emailstring required
passwordstring required
client_idstring required
redirect_uristring required
code_challengestring required
scopestring
statestring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.