uhm no it doesn’t
i’m sorry for the confusion, i did not read well.
This is my terminal error when i pass MyBrandOAuth2Client as oauth2Client. it contains:
MyBrandOAuth2Client {
_events: [Object: null prototype] {
log: [Function (anonymous)],
error: [Function (anonymous)],
debug: [Function (anonymous)],
save: [Function (anonymous)],
destroy: [Function (anonymous)]
},
_eventsCount: 5,
_maxListeners: undefined,
homey: Homey {
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
dir: '/app',
tmpdir: '/app/tmp',
version: '10.3.4',
platform: 'local',
platformVersion: 2,
env: {},
manifest: [Object],
app: [MyBrandApp],
__readyResolve: [Function (anonymous)],
__readyPromise: [Promise],
_timers: Set(0) {},
_destroyed: false,
apps: [ManagerApps],
arp: [ManagerArp],
audio: [ManagerAudio],
ble: [ManagerBLE],
cloud: [ManagerCloud],
clock: [ManagerClock],
drivers: [ManagerDrivers],
discovery: [ManagerDiscovery],
flow: [ManagerFlow],
geolocation: [ManagerGeolocation],
i18n: [ManagerI18n],
images: [ManagerImages],
insights: [ManagerInsights],
ledring: [ManagerLedring],
nfc: [ManagerNFC],
notifications: [ManagerNotifications],
rf: [ManagerRF],
settings: [ManagerSettings],
speechInput: [ManagerSpeechInput],
speechOutput: [ManagerSpeechOutput],
zigbee: [ManagerZigBee],
zwave: [ManagerZwave],
api: [ManagerApi],
__strings: [Object],
__: [Function: __],
[Symbol(kCapture)]: false
},
_tokenConstructor: [class OAuth2Token],
_clientId: '???',
_clientSecret: '???',
_apiUrl: 'https://accounts.google.com/o/oauth2/auth?response_type=code&',
_tokenUrl: 'https://oauth2.googleapis.com/token',
_authorizationUrl: 'https://accounts.google.com/o/oauth2/auth',
_redirectUrl: 'https://callback.athom.com/oauth2/callback',
_scopes: [
'https://www.googleapis.com/auth/userinfo.profile',
'https://www.googleapis.com/auth/userinfo.email'
],
_token: OAuth2Token {
access_token: '???',
refresh_token: null,
token_type: 'Bearer',
expires_in: 3599
},
_title: null,
[Symbol(kCapture)]: false
}
}
and throws this error:
in failed with error: googleCredentials.getRequestMetadata is not a function
at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client.js:420:73)
at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
at /app/node_modules/@grpc/grpc-js/build/src/resolving-call.js:129:78
at processTicksAndRejections (node:internal/process/task_queues:78:11)
for call at
at ServiceClientImpl.makeBidiStreamRequest (/app/node_modules/@grpc/grpc-js/build/src/client.js:404:32)
at ServiceClientImpl.converse (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at new Conversation (/app/node_modules/google-assistant/components/conversation.js:136:34)
at GoogleAssistant.start (/app/node_modules/google-assistant/index.js:49:26)
at GoogleAssistant.<anonymous> (/app/drivers/google-assistant-driver/driver.js:99:42)
at GoogleAssistant.emit (node:events:513:28)
at assistantReady (/app/node_modules/google-assistant/index.js:22:12)
at processTicksAndRejections (node:internal/process/task_queues:78:11) {