Skip to main content

Interface: PostgresdbConsentStore

Defined in: packages/auth-postgresdb/src/stores/createConsentStore.ts:6

A ConsentGrantStore plus the write side an app's consent page needs.

Extends

  • ConsentGrantStore

Properties

deleteConsentGrant

deleteConsentGrant: (params) => Promise<void>

Defined in: packages/auth-core/src/redirectConsentOnAuthorize.ts:32

Delete a consent grant (called after consumption to enforce single-use).

Parameters

ParameterType
params{ codeChallenge: string; }
params.codeChallengestring

Returns

Promise<void>

Inherited from

ConsentGrantStore.deleteConsentGrant


getConsentGrant

getConsentGrant: (params) => Promise<ConsentGrant | undefined>

Defined in: packages/auth-core/src/redirectConsentOnAuthorize.ts:28

Look up a consent grant by its PKCE codeChallenge.

Parameters

ParameterType
params{ codeChallenge: string; }
params.codeChallengestring

Returns

Promise<ConsentGrant | undefined>

Inherited from

ConsentGrantStore.getConsentGrant


saveConsentGrant

saveConsentGrant: (grant) => Promise<void>

Defined in: packages/auth-postgresdb/src/stores/createConsentStore.ts:12

Record an approval so the restarted /authorize request can consume it. Call this from the consent page's approve handler, before navigating back to the authorization server's /authorize.

Parameters

ParameterType
grantConsentGrant & object

Returns

Promise<void>