Unused code in the SPA example

Line 109 from the example code doesn’t seem to use ‘user’ or ‘loggedIn’. What function do they serve?

authComplete$.subscribe(([user, loggedIn]) => {
// Redirect to target route after callback processing
this.router.navigate([targetRoute]);
});

Hey there!

Can you share the URL to the content you took this code snippet from? Thank you!

Of course!
https://github.com/auth0-samples/auth0-angular-samples/blob/master/01-Login/src/app/auth/auth.service.ts

1 Like

Thank you!

Can I ask you to open a GitHub issue on that repo so that the repo maintainers can explain that directly? Whenever you have any problem with our stack and it has a GitHub repo the most effective way to get support on that is to talk with tool maintainers through GitHub repo by providing the issue context. Make sure to share the link to it with us so we can ping them!

1 Like

Perfect! I’ll ping repo maintainers in a few minutes!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.