smart-home-nodejs icon indicating copy to clipboard operation
smart-home-nodejs copied to clipboard

No src/config-provider.ts file

Open fatshotty opened this issue 3 years ago • 3 comments

Hi, I followed instruction but I can't be able to found the file src/config-providers.ts file and then I don't have the client_secret value

any help?

fatshotty avatar Jun 30 '21 09:06 fatshotty

I'm not sure why it would be missing in the source, but it should be in this format:

/* Copyright 2017, Google, Inc.
 * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 /**
  * This provides a number of parameters that may be used throughout this sample.
  */

// Port used for Express server
export const expressPort = 3000

// Client id that Google will use to make authorized requests
// In a production environment you should change this value
export const googleClientId = 'sampleClientId'

// Client secret that Google will use to make authorized requests
// In a production environment you should change this value
export const googleClientSecret = 'sampleClientSecret'

let ngrok = false
process.argv.forEach((value) => {
  if (value.includes('isLocal')) {
    ngrok = true
  }
})

// Running server locally using ngrok
export const useNgrok = ngrok

export const googleCloudProjectId = 'put your project id here'

Fleker avatar Jun 30 '21 15:06 Fleker

thanks for reply. However... nothing is working. Documentation in Readme.md is not the same as per google console pages; maybe is it outdated? If you try to follow instructions as per readme.md file.... I think you can't correctly setup the project

Thank you

fatshotty avatar Jun 30 '21 15:06 fatshotty

any news here, please? same here. where can I get my client id and secret for OAuth?

EgHubs avatar Aug 14 '21 21:08 EgHubs