You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Description:
When attempting to log in to the new application using Microsoft login, an error occurs: firebase.service.ts:22 Error during Microsoft login: FirebaseError: Firebase: Error (auth/internal-error). The same Firebase configuration works fine with another application. However, when using a new Firebase configuration, the login process works as expected.
[REQUIRED] Environment Details:
Operating System version: [Windows 11]
Browser version: [128.0.6613.84]
[REQUIRED] Steps to Reproduce:
Use the existing Firebase configuration.
Attempt to log in to the new application using Microsoft login.
Observe the error in the console:
firebase.service.ts:22 Error during Microsoft login: FirebaseError: Firebase: Error (auth/internal-error).
Relevant Code:
import{Injectable,inject}from'@angular/core';import{Auth,OAuthProvider,signInWithPopup,signOut}from'@angular/fire/auth';
@Injectable({providedIn: 'root'})exportclassFirebaseService{privateafAuth: Auth=inject(Auth);constructor(){}// Login with Microsoft providerasyncloginWithMicrosoft(){try{constprovider=newOAuthProvider('microsoft.com');provider.setCustomParameters({tenant: 'xxxxx',});constresult=awaitsignInWithPopup(this.afAuth,provider);returnresult;}catch(error){console.error('Error during Microsoft login:',error);// Log error for debuggingthrowerror;}}// Logout the current userasynclogout(): Promise<void>{try{awaitsignOut(this.afAuth);}catch(error){console.error('Error during logout:',error);// Log error for debuggingthrowerror;}}}
Additional Notes:
The same Firebase configuration works without issues in another application.
The error only occurs when using the existing configuration with the new application.
The tenantId was validated and confirmed to be correct.
The application is an Angular application and was run locally.
Switching to a new Firebase configuration resolves the login issue.
Request for Investigation: We need to understand why the existing Firebase configuration causes this error in the new application, despite working fine elsewhere. Additionally, a solution or workaround to use the existing configuration without errors would be ideal.
The text was updated successfully, but these errors were encountered:
Issue Description:
When attempting to log in to the new application using Microsoft login, an error occurs:
firebase.service.ts:22 Error during Microsoft login: FirebaseError: Firebase: Error (auth/internal-error).
The same Firebase configuration works fine with another application. However, when using a new Firebase configuration, the login process works as expected.[REQUIRED] Environment Details:
[REQUIRED] Steps to Reproduce:
Use the existing Firebase configuration.
Attempt to log in to the new application using Microsoft login.
Observe the error in the console:
Relevant Code:
Additional Notes:
Request for Investigation: We need to understand why the existing Firebase configuration causes this error in the new application, despite working fine elsewhere. Additionally, a solution or workaround to use the existing configuration without errors would be ideal.
The text was updated successfully, but these errors were encountered: