Azure AD B2C login with Firebase Auth Capacitor plugin: Ionic/Angular

Issue

I use this Capacitor plugin to Auth with MS. But no luck yet.

I have followed this doc and configured it all well.

But can you tell me where to set this up?

When registering apps with these providers, be sure to register the
*.firebaseapp.com domain for your project as the redirect domain for your app.

Error

The supplied auth credential is malformed or has expired. [ Error
getting access token from microsoft.com, OAuth2 redirect uri is:
https://my-app-123a2.firebaseapp.com/__/auth/handler, response:
OAuth2TokenResponse{params: error=invalid_reques

This is an Ionic/Angular Native app on an Android device.

Solution

This problem was solved in the following GitHub issue: https://github.com/robingenz/capacitor-firebase/issues/74#issuecomment-1107418833

Make sure you select Web as the platform for your redirect URI when registering a Microsoft OAuth client.

Answered By – RGe

Answer Checked By – Clifford M. (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.