fix: added scope for github strategy in auth module
This commit is contained in:
@@ -15,10 +15,12 @@ export class GithubStrategy extends PassportStrategy(Strategy) {
|
||||
clientID: process.env.GITHUB_CLIENT_ID,
|
||||
clientSecret: process.env.GITHUB_CLIENT_SECRET,
|
||||
callbackURL: process.env.GITHUB_CALLBACK_URL,
|
||||
scope: [process.env.GITHUB_SCOPE],
|
||||
});
|
||||
}
|
||||
|
||||
async validate(accessToken, refreshToken, profile, done): Promise<any> {
|
||||
async validate(accessToken, refreshToken, profile, done) {
|
||||
console.dir(profile);
|
||||
const user = await this.usersService.findUserByEmail(
|
||||
profile.emails[0].value,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user