Now I am going to create a check authentication api that allows the frontend to check whether the user is logged in or not to update the state.
- The route is "/check_authentication/ " and its method is post.
- If the user is logged in the return True else False in a json format.
- example {'is_logged_in':True}