Skip to content

It doesn't navigate to login page if status code is 401 #651

Answered by ju4n97
sankaSanjeeva asked this question in Q&A
Discussion options

You must be logged in to vote

@sankaSanjeeva Thank you for pointing out the issue! This is in fact due to the auth guard.

{
    path: 'auth',
    loadChildren: async () => (await import('@pages/auth')).routes,
    canMatch: [authGuard({ requiresAuthentication: false })],
}

This code is responsible for loading the authentication routes only when the user is not authenticated.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ju4n97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants