Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
style: inline prompt response
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw authored Jan 27, 2024
1 parent d70ca91 commit fcaf7ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/generate_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { randomBytes } from 'crypto'
async function main() {
const generated_token = randomBytes(48).toString('base64url')
console.log(`[+] Your generated token is ${generated_token}`)
const save = prompt('[?] Would you like to use this token? (y/N)')?.toLowerCase()

if (save !== 'y') {
if (prompt('[?] Would you like to use this token? (y/N)')?.toLowerCase() !== 'y') {
return
}

Expand Down

0 comments on commit fcaf7ff

Please sign in to comment.