UNPKG

backlog-js

Version:

Backlog API v2 client for browser and node

22 lines (21 loc) 631 B
import * as Option from './option'; import * as Entity from './entity'; export default class OAuth2 { private credentials; private timeout?; constructor(credentials: Option.OAuth2.Credentials, timeout?: number); getAuthorizationURL(options: { host: string; redirectUri?: string; state?: string; }): string; getAccessToken(options: { host: string; code: string; redirectUri?: string; }): Promise<Entity.OAuth2.AccessToken>; refreshAccessToken(options: { host: string; refreshToken: string; }): Promise<Entity.OAuth2.AccessToken>; }