lokalise_auth.d.ts 574 B

12345678910111213
  1. import { AuthData as AuthDataInterface } from "../interfaces/auth_data";
  2. import { RequestTokenResponse } from "../models/request_token_response";
  3. export declare class LokaliseAuth {
  4. authData: AuthDataInterface;
  5. constructor(clientId: string, clientSecret: string, host?: string);
  6. auth(scope: string | string[], redirect_uri?: string, state?: string): string;
  7. token(code: string): Promise<RequestTokenResponse>;
  8. refresh(refresh_token: string): Promise<any>;
  9. private doRequest;
  10. private buildUrl;
  11. private base_params;
  12. private handleReject;
  13. }