| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const {google} = require('googleapis'); |
||
| 8 | function gAuth() { |
||
| 9 | // Use default credentials (service account) |
||
| 10 | const credentials = new google.auth.GoogleAuth({ |
||
| 11 | scopes: ['https://www.googleapis.com/auth/chat.bot'], |
||
| 12 | }); |
||
| 13 | return google.chat({ |
||
| 14 | version: 'v1', |
||
| 15 | auth: credentials, |
||
| 16 | }); |
||
| 17 | } |
||
| 18 | |||
| 42 |