Developing [Attendance Monitoring System] ionic app with Firebase

I am creating an app for taking attendance of students. The project is having Auth module and inside auth module i have login, signup, auth-guard and auth service.
So the issue is when the user logs into the system the user is redirecting into the respective dashboards. And while on dashboard when the user hits refresh or makes any change into the project the user is redirected to the Login page. I am using firebase authentication. I need help with it if anyone can suggest me something helpful.