Hi Team, after login from Auth0 i am redirecting back to /callback component where private handleCallback(): void {
this.auth
.handleRedirectCallback() // Handle Auth0 callback
.pipe(
switchMap(() => this.auth.user$), // Fetch user profile
tap((profile) => this.handleUserProfile(profile)), // Process user profile
switchMap(() => this.loadConfig()), // Load configuration
tap(() => this.login()), // Proceed to login
catchError((err) => {
console.error(‘Error during callback handling:’, err);
this.setLoginError(‘An error occurred during login.’);
return of(null); // Graceful continuation
})
)
.subscribe();
}
Hi @bbonam,
Welcome to the Auth0 Community!
Can you kindy review this Knowledge Article we have on this error: Invalid State Errors on handleRedirectCallback - Auth0 React SDK
Additoinally, could you provide a screenshot or paste the exact error message received? Do you see any failing logs in the tenant? Are you using classic login?
Thanks,
Mary Beth
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.