Skip to content

Commit

Permalink
id and oauth secret
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Apr 6, 2023
1 parent fc266d4 commit f428d52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/WebApi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import express from "express";
import cors from "cors";
import passport from "passport";

const DiscordStrategy = require("passport-discord").Strategy;

const app = express();
Expand All @@ -18,9 +19,9 @@ export class WebApi {
passport.use(
new DiscordStrategy(
{
clientID: "id",
clientSecret: "secret",
callbackURL: "callbackURL",
clientID: "534686392589221898",
clientSecret: process.env.oauthSecret,
callbackURL: "callback",
scope: ["identify", "guilds"],
},
function (accessToken, refreshToken, profile, done) {
Expand Down

0 comments on commit f428d52

Please sign in to comment.