question

Ingenium-Alexa avatar image
Ingenium-Alexa asked

Example of authentication with asw-sdk in Node.js with GRPC

Hi everyone, I was working in an app for Alexa in Node JS that makes connection with a Smarthome based on a version of Google that uses GRPC.

I was wondering how I would make the authentication process with aws-sdk library as follows and where I can find some examples of this kind of apps:


const {auth} = require('google-auth-library');

async function getADC() {
    const res = await auth.getApplicationDefault();

    return res.credential;
}
alexaalexa smart homehelpsdknode_js
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hello @Ingenium-Alexa and thank you for your message.

I am not familiar with the google-auth-library, but from their npm page, it appears to be related to authentication with Google services. I am not following the connection with the aws-sdk library you mention in your question. Would you mind elaborate on that?

Regards,
Barry

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.