chore: added types to createProviderAccount ,ethod in auth.service file

This commit is contained in:
Balu Babu
2023-01-19 04:55:51 +05:30
parent 813db4a985
commit 82dee95cd0
6 changed files with 23 additions and 24 deletions

View File

@@ -33,7 +33,10 @@ export class MicrosoftStrategy extends PassportStrategy(Strategy) {
return createdUser;
}
// Check to see if entry for microsoft is present in the Account table for this user
/**
* * Check to see if entry for Microsoft is present in the Account table for user
* * If user was created with another provider findUserByEmail may return true
*/
const providerAccountExists =
await this.authService.checkIfProviderAccountExists(user.value, profile);