const Strategy = require("discord-oauth2-client").Strategy;
const passport = require("passport");
passport.use(new Strategy({
clientID: '', // https://discord.com/developers/applications
clientSecret: '', // https://discord.com/developers/applications
callbackURL: '/callback',
scope: ['identify', 'guilds'],
prompt: 'none'
}, function(accessToken, refreshToken, profile, done) {
process.nextTick(function() {
return done(null, profile);
});
}));
passport.serializeUser(function(user, done) {
done(null, user);
});
passport.deserializeUser(function(obj, done) {
done(null, obj);
});
-
Notifications
You must be signed in to change notification settings - Fork 1
apollodevv/discord-oauth2-client
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published