UNPKG

@azteam/google-api

Version:

N/A

28 lines (22 loc) 655 B
import GoogleOAuth2API from './GoogleOAuth2API'; import {GMAIL_SCOPE} from './scope'; // const GMAIL_ENDPOINT = ''; class GmailAPI extends GoogleOAuth2API { constructor(accountType, credential, options = {}) { super( accountType, { ...credential, scope: GMAIL_SCOPE, }, options ); } getAuthLink(redirectURI, state, arrayScope = [GMAIL_SCOPE]) { return super.getAuthLink(redirectURI, state, arrayScope); } async hasScope(arrayScope = [GMAIL_SCOPE]) { return super.hasScope(arrayScope); } } export default GmailAPI;