All checks were successful
Testing Example / build-and-test (push) Successful in 2m2s
fixed ci/cd
11 lines
304 B
JavaScript
11 lines
304 B
JavaScript
const fs = require('fs');
|
|
|
|
const filePath = 'src/authtoken.json';
|
|
|
|
if (!fs.existsSync(filePath)) {
|
|
const randomToken = (Math.random().toString(36).substring(2, 10));
|
|
console.log("You're token is ", randomToken);
|
|
fs.writeFileSync(filePath, JSON.stringify({ token: randomToken }, null, 2));
|
|
}
|
|
|