Angular Universal support #166
Replies: 9 comments 6 replies
-
@stevermeister Just to summarize from #1 We don't have to store cookies in Node or any other server. We store them in browser as usual but we have to make sure I created sample repo that demonstrates this. It works as expected. Clone the project and run as per instructions in Readme.md file |
Beta Was this translation helpful? Give feedback.
-
@stevermeister I found another issue when using this library in SSR. Authentication guards fail when page loads initially because document is not available.
Even though user goes to original requested page, but he sees redirection to login page, which is not ideal. I believe this caused by the code where are looking checking |
Beta Was this translation helpful? Give feedback.
-
@pavankjadda no I'm on a business trip and don't have time to dive deep into it. But it's a really interesting topic. Maybe we can even set up a call for next week? |
Beta Was this translation helpful? Give feedback.
-
@stevermeister How do you wanna meet? We have Discord server if you like to meet there. Or I can send WebEx link, let me know. |
Beta Was this translation helpful? Give feedback.
-
@pavankjadda what would be a convenient day/time for you? |
Beta Was this translation helpful? Give feedback.
-
@pavankjadda I had a bit of time to think about it. I see 2 questions that we need to solve here:
how to inject cookiesI liked the idea that you suggested: inject cookies via ngExpressEngine. structureThe first thought was to create cookie-client, cookie-server separate classes and after factory to create instance by condition. |
Beta Was this translation helpful? Give feedback.
-
created initial PR for it - https://github.com/stevermeister/ngx-cookie-service/pull/171/files |
Beta Was this translation helpful? Give feedback.
-
@stevermeister I have a workaround to use current version of the library without any changes. See the StackOverFlow issue for details. |
Beta Was this translation helpful? Give feedback.
-
@pavankjadda I see the SSR merge has been reverted again, why was this and any idea when it'll be returning? |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe
No
Describe the solution you'd like
Support Angular Universal (SSR)
Describe alternatives you've considered
No
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions