Skip to main content

IQOAuthConsentStore

@quik/oauth-server


@quik/oauth-server / IQOAuthConsentStore

Interface: IQOAuthConsentStore

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:6

Store contract for OAuth consents.

Methods

cleanup()

cleanup(now?): number

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:20

Removes revoked entries and returns removed count.

Parameters

now?

number

Returns

number


clear()

clear(): void

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:18

Clears all consents.

Returns

void


find()

find(clientId, userId): QOAuthConsent

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:12

Returns one consent by client/user pair.

Parameters

clientId

string

userId

string

Returns

QOAuthConsent


get()

get(id): QOAuthConsent

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:10

Returns one consent by id.

Parameters

id

string

Returns

QOAuthConsent


remove()

remove(id): void

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:16

Removes one consent entry.

Parameters

id

string

Returns

void


revoke()

revoke(id): void

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:14

Marks one consent as revoked.

Parameters

id

string

Returns

void


save()

save(consent): QOAuthConsent

Defined in: oauth-server/src/types/IQOAuthConsentStore.ts:8

Persists one consent entry.

Parameters

QOAuthConsent

Returns

QOAuthConsent