Closed
Description
Can not make sign in with microsoft work,
what is the correct implementaiton?
current code:
` async signInWithMicrosoft() {
try {
const microsoftProvider = new firebase.auth.OAuthProvider('microsoft.com');
microsoftProvider.addScope('profile');
microsoftProvider.addScope('email');
let res = await signInWithPopup(this.auth, microsoftProvider)
}catch (e) {
console.log(e)
}
}
}`
that throws error:
"Cannot read properties of undefined (reading 'OAuthProvider')" 😤
Metadata
Metadata
Assignees
Labels
No labels