UNPKG

@intocode-io/fireliff-cli

Version:

Command line interface for building LIFF app on Firebase

21 lines (18 loc) 464 B
import * as qs from 'qs'; import { OAuthRequest } from './oauth-request'; export class OAuthIssueTokenRequest extends OAuthRequest { constructor() { super(); this.endpoint = `${this.endpoint}/accessToken`; } send(channelId, channelSecret) { return this.axios.post( `${this.endpoint}`, qs.stringify({ grant_type: 'client_credentials', client_id: channelId, client_secret: channelSecret, }) ); } }