0
velu created
Hi,
[ASPNETCORE + ANGULAR 4/5/6/7]
How to redirect to login page in angular on following conditions.
- On SecurityTokenException.
- Session Expired.
Where we can implemement this catch in angular.
Thanks
3 Answer(s)
-
0
Hi @velu
This must be done automatically. Do you want to redirect user without showing an error message ?
Thanks,
-
0
Hi,
How can we catch any server error in Anguar.
in current application we need to refresh the borwser [F5] to redirect to the login page
Thanks
-
0
Hi @velu,
You can either catch error similar to https://github.com/aspnetzero/aspnet-zero-core/issues/1789#issuecomment-430499993 or you can write your own http interceptor similar to https://github.com/aspnetboilerplate/abp-ng2-module/blob/master/src/abpHttpInterceptor.ts.
Catching the error is better I guess.
Have an answer to this question?
Log in
and write your answer.