Type alias AppTokenProviderResult

AppTokenProviderResult: {
    accessToken: string;
    expiresInSeconds: number;
    refreshInSeconds?: number;
}

Output object for IAppTokenProvider extensiblity.

  • accessToken - the actual access token, typically in JWT format, that satisfies the request data AppTokenProviderParameters
  • expiresInSeconds - how long the tokens has before expiry, in seconds. Similar to the "expires_in" field in an AAD token response.
  • refreshInSeconds - how long the token has before it should be proactively refreshed. Similar to the "refresh_in" field in an AAD token response.

Type declaration

  • accessToken: string
  • expiresInSeconds: number
  • Optional refreshInSeconds?: number

Generated using TypeDoc