Skip to content

Users not registering #8

Description

@ghostfighter50

When I try using this package for registering users thanks to discord's oauth, nothing appears, I try to log the profile variable but nothing appears, I followed the example but it's not working.

  app.use(passport.initialize());
    app.use(passport.session());

    passport.serializeUser((user, done) => {
        done(null, user);
    });
    passport.deserializeUser((obj, done) => {
        done(null, obj);
    });
    passport.use(new Strategy({
      clientID: "clientid",
      clientSecret: "clientsecret",
      callbackURL: "http://localhost:8000/", 
      scope: ["identify", "guilds"],
    }, function (accessToken, refreshToken, profile, done) {
            console.log(profile)
            return done(null, profile);
        
    }))

I get redirected to http://127.0.0.1:8000/?code=randomcharacters

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions