Function: createPendingAuthorizationStore()
createPendingAuthorizationStore(
__namedParameters):PendingAuthorizationStore
Defined in: packages/auth-postgresdb/src/stores/createPendingAuthorizationStore.ts:41
Creates a PendingAuthorizationStore backed by the
oauth_pending_authorizations table, for createPendingConsentOnAuthorize.
approve is one conditional UPDATE, and consume hands the row only to
the caller whose DELETE removed it, so concurrent approvals or resumes
never both succeed. delete, which auth-core calls only to deny, leaves an
approved row alone.
Parameters
| Parameter | Type | Description |
|---|---|---|
__namedParameters | { model: typeof OAuthPendingAuthorization; } | - |
__namedParameters.model | typeof OAuthPendingAuthorization | The OAuthPendingAuthorization model class, from the app's db handle. |
Returns
PendingAuthorizationStore