I am implementing the Firebase authentication by using OAuthProvider class to sign in with a personal microsoft account.
I have followed this instructions: https://firebase.google.com/docs/auth/ios/microsoft-oauth?authuser=0
However when I am using OAuthProvider of Firebase SDK it does not show up the sign in page of Microsoft, actually nothing gets invoked by getCredentialWith.
When I am using GoogleAuthProvider everything works fine and Firebase SDK shows up the sign in page of Google.
let provider = OAuthProvider(providerID: "microsoft.com")
provider.scopes = ["files.readwrite.appfolder", "user.read"]
provider.getCredentialWith(nil, completion: { credential, error in
if let error = error {
os_log("Firebase Error: %@", type: .fault, error as CVarArg)
return
}
if (credential != nil) {
Auth.auth().signInAndRetrieveData(with: credential!, completion: { authResult, error in
if let error = error {
os_log("Firebase Error: %@", type: .fault, error as CVarArg)
return
}
})
}
})