Skip to content

Instantly share code, notes, and snippets.

@Fleker
Created April 30, 2019 00:34
Show Gist options
  • Select an option

  • Save Fleker/3959d2e69f79d34c0f5fc050c1fd1c0e to your computer and use it in GitHub Desktop.

Select an option

Save Fleker/3959d2e69f79d34c0f5fc050c1fd1c0e to your computer and use it in GitHub Desktop.
Setup Auth0 & AoG
const {AuthenticationClient} = require('auth0');
const auth0 = new AuthenticationClient({
'clientId': 'clientIdentifier',
'domain': '<auth0-tenant-id>.auth0.com'
});
const smarthome = require('actions-on-google');
const app = smarthome({
jwt: require('./service-account-key.json')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment