Coder Social home page Coder Social logo

discord-token-generator's Issues

Updated Version?

The oauth2 flow has recently changed.
Are you planning to update this?

CLIENT_ID is not snowflake

i get this error when i go to press login but i the same discord.js

"Value "undefined" is not snowflake."

and this is the code
const express = require('express');

const router = express.Router();

const CLIENT_ID = process.env.CLIENT_ID;
const CLIENT_SECRET = process.env.CLIENT_SECRET;
const redirect = encodeURIComponent('http://localhost:50451/api/discord/callback');

router.get('/login', (req, res) => {
res.redirect(https://discordapp.com/api/oauth2/authorize?client_id=$%7BCLIENT_ID%7D&redirect_uri=http%3A%2F%2Flocalhost%2Fapi%2Fdiscord%26callback&response_type=code&scope=identify);
});

module.exports = router;

Unable to start server

C:\Users\Administrator\Downloads\discord-token-generator-master\discord-token-generator-master\api\discord.js:20
router.get('/callback', catchAsync(async (req, res) => {
                                         ^
SyntaxError: Unexpected token (
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\Administrator\Downloads\discord-token-generator-master\discord-token-generator-master\server.js:20:25)
    at Module._compile (module.js:570:32)

Versions

C:\Users\Administrator\Downloads\discord-token-generator-master\discord-token-generator-master>npm version
{ 'discord-token-generator': '1.0.0',
  npm: '3.10.10',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '57.1',
  modules: '48',
  node: '6.9.4',
  openssl: '1.0.2j',
  uv: '1.9.1',
  v8: '5.1.281.89',
  zlib: '1.2.8' }

help needed quick

when clicking Login thru discord i get this error
"{"client_id": ["Value "undefined" is not snowflake."]}"

Please Help!

So Umm... I don't know how this works. Not enough clarification. Please help mate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.