oauthAuthorizationCodes is meant for the codes of the OAuth authorization code flow: one document per code, which a client swaps for an access token. The schema is services/web/app/src/models/OauthAuthorizationCode.mjs, and the oauth2-server web module has the code that would write it. In Ayakaleaf Pro nothing reaches that code, so the collection stays empty (see Notes).
Fields
Who Writes It
Who Reads It
Indexes
Migrations are in
tools/migrations/. The unique authorizationCode_1 index comes only from migrations tagged saas and server-pro, which Community Edition does not run.
Notes
- The model methods above are called only by the authorize and token handlers of
@node-oauth/oauth2-server. Web uses that library only to check bearer tokens (services/web/app/src/Features/Authentication/AuthenticationController.mjs:409-450), and no route serves/oauth/authorizeor/oauth/token, so no code is ever written. Personal access tokens are created directly, see OAuth Access Tokens.

