feat: microsoft SSO auth completed

This commit is contained in:
Balu Babu
2023-01-19 04:15:43 +05:30
parent 81cb0d43d7
commit c63bc28ca0
4 changed files with 13 additions and 5 deletions

View File

@@ -15,11 +15,11 @@ export class MicrosoftStrategy extends PassportStrategy(Strategy) {
clientID: process.env.MICROSOFT_CLIENT_ID,
clientSecret: process.env.MICROSOFT_CLIENT_SECRET,
callbackURL: process.env.MICROSOFT_CALLBACK_URL,
scope: process.env.MICROSOFT_SCOPE,
scope: [process.env.MICROSOFT_SCOPE],
});
}
async validate(accessToken, refreshToken, profile, done) {
async validate(accessToken: string, refreshToken: string, profile, done) {
const user = await this.usersService.findUserByEmail(
profile.emails[0].value,
);