Skip to content

five-on-it / apps/api/src/store / OAuthGrant

Interface: OAuthGrant ​

Defined in: apps/api/src/store.ts:739

What a creator allowed a client: the line of access and refresh tokens one code started. Revoking it (deleting it) ends every token of the line at once.

Properties ​

account ​

account: Account

Defined in: apps/api/src/store.ts:745

The account the tokens act as.


client ​

client: string

Defined in: apps/api/src/store.ts:743

The client.


createdAt ​

createdAt: string

Defined in: apps/api/src/store.ts:750

ISO times: when it was allowed, and when its newest refresh token expires.


expiresAt ​

expiresAt: string

Defined in: apps/api/src/store.ts:751


id ​

id: string

Defined in: apps/api/src/store.ts:741

grant-….


resource? ​

optional resource?: string

Defined in: apps/api/src/store.ts:748


scope? ​

optional scope?: string

Defined in: apps/api/src/store.ts:747

The scope and the resource the code was for.