Add empty secrets.json
This commit is contained in:
parent
23f5987300
commit
0e4a0fadd0
4
secrets.template.json
Normal file
4
secrets.template.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"clientId": "",
|
||||
"clientSecret": ""
|
||||
}
|
@ -5,6 +5,11 @@ import fetch from "node-fetch";
|
||||
import { writeFileSync } from "fs";
|
||||
import { secretsFile, secrets } from "./common.js";
|
||||
|
||||
if (!secrets.clientId || !secrets.clientSecret) {
|
||||
console.error("No client credentials token found. Please run 'npm run token' first.");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const app = express()
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
app.use(bodyParser.json());
|
||||
|
Loading…
Reference in New Issue
Block a user