You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user is not logged in, they can still access any page, so they should automatically be redirected to the login screen. Caregivers can currently view admin pages, so they should be redirected if they try to access a page that they are unauthorized to view, which includes pages both for Admins and for other Caregivers. We can accomplish this using Next.js along with Firebase since Firebase stores the current user's authentication information in the auth object which we can import from db/firebase.
Don't hesitate to Slack me if you need any help or have any questions :D We can message or jump into a Huddle meeting as needed!
The text was updated successfully, but these errors were encountered:
Overview
If a user is not logged in, they can still access any page, so they should automatically be redirected to the login screen. Caregivers can currently view admin pages, so they should be redirected if they try to access a page that they are unauthorized to view, which includes pages both for Admins and for other Caregivers. We can accomplish this using Next.js along with Firebase since Firebase stores the current user's authentication information in the
auth
object which we can import fromdb/firebase
.Don't hesitate to Slack me if you need any help or have any questions :D We can message or jump into a Huddle meeting as needed!
The text was updated successfully, but these errors were encountered: