Skip to content

Interface: ServerOAuth2ManagerOptions ​

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:10

Properties ​

accessToken? ​

ts
optional accessToken?: string;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:13


clientId? ​

ts
optional clientId?: string;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:15


clientSecret? ​

ts
optional clientSecret?: string;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:16


expiresAt? ​

ts
optional expiresAt?: number;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:20

Access-token expiry as epoch milliseconds.


fetch? ​

ts
optional fetch?: FetchLike;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:23

The fetch the client was configured with, so a proxy or a log covers the token calls too.


host ​

ts
host: string;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:12

The instance the tokens belong to. Also the base URL for every request, since there is no gateway.


onTokenRefresh? ​

ts
optional onTokenRefresh?: OnTokenRefresh;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:21


redirectUri? ​

ts
optional redirectUri?: string;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:18

The redirect URI the incoming link was registered with. The provider validates it on refresh too.


refreshToken? ​

ts
optional refreshToken?: string;

Defined in: src/core/oauthServer/serverOAuth2Manager.ts:14