the problem is how to authenticate user on server side?
i hear rapidly that authentication should done on client side using isPlatformBrowser.
but the problem is when user is login and then we send a request to the angular ssr, here rendering page is not correct, instead of seeing the correct page, user will see login page!
i'm wondering that no body mentioned this issue!!!
also infer 2 ways: 1: on the server side, we should request to the api server and get approve that user is valid or not.
2: we use cookie and check if there is a specific key in cookie on the authGuard
i want to know is there any other way that is better that mine? and also want to know if i use cookie approach, is it safe just to check for its existing and no one other than api server can add it manually or not?