monzo-ts
Version:
Typed Monzo API Wrapper
13 lines (12 loc) • 525 B
TypeScript
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>;
}