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
| Parameter | Type |
|---|---|
params | { codeChallenge: string; } |
params.codeChallenge | string |
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
| Parameter | Type |
|---|---|
params | { codeChallenge: string; } |
params.codeChallenge | string |
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
| Parameter | Type |
|---|---|
grant | ConsentGrant & object |
Returns
Promise<void>