UNPKG

monzo-ts

Version:
13 lines (12 loc) 525 B
import { OAuthTokens, OAuthWhoAmI } from '../entities/OAuth'; import { MonzoAPI } from './MonzoAPI'; export declare class MonzoOAuthAPI extends MonzoAPI { private clientId; private clientSecret; private redirectUrl; constructor(clientId: string, clientSecret: string, redirectUrl: string); generateAuthUrl(stateToken?: string): string; exchangeCode(code: string): Promise<OAuthTokens>; refreshToken(refreshToken: string): Promise<OAuthTokens>; me(accessToken: string): Promise<OAuthWhoAmI>; }