-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorporate observable of loginWithRedirect in observable returned by AuthGuard #660
base: main
Are you sure you want to change the base?
Incorporate observable of loginWithRedirect in observable returned by AuthGuard #660
Conversation
Hi @Mobe91, return this.auth.isAuthenticated$.pipe(
switchMap((loggedIn) => {
if (!loggedIn) {
return this.auth.loginWithRedirect({
appState: { target: state.url },
}).pipe(
map(() => false),
catchError(() => of(false))
);
}
return of(true);
})
); |
@tusharpandey13 |
@tusharpandey13 Do you have any more feedback on this change? Do you think we could merge this? |
Please note that we have some broken CI checks which are currently failing, they should not block merging. |
Head branch was pushed to by a user without write access
4553e0c
to
b2cc654
Compare
… AuthGuard (#659)
By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
See #659
References
#659
Testing
Checklist