首页 > 解决方案 > ngx admin redirect if user session expire on server side

问题描述

I'm using ngx admin with it's nebular auth in Angular 6. Backend is in Laravel and using APIs for communication with each other.

My issue is when user stay inactive for a long time, his session expire on server but he still can navigate to angular pages with no data in them as API gives 401 Unauthorized error.

Is there any default way in this admin theme which provide this feature to check user login status and redirect him to logout page? Please guide.

I didn't added code here as I don't know which files you guys might want to see. So let me know if you need anything else.

标签: angularauthenticationangular6

解决方案


推荐阅读