Slide 40
Slide 40 text
this.actions$.pipe(
ofType(AuthActions.handleRedirect),
exhaustMap(() => {
@samjulien
})
// handle redirect and process tokens
this.authService.handleRedirect.pipe(
map(({ redirectUrl }) =>
AuthActions.loginSuccess({ redirectUrl })),
catchError(({ error }) =>
AuthActions.loginFailure({ error }))
);