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 |
|
@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 |
|
@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? |
|
@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. |
|
@pavankjadda what would be a convenient day/time for you? |
|
@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. |
|
created initial PR for it - https://github.com/stevermeister/ngx-cookie-service/pull/171/files |
|
@stevermeister I have a workaround to use current version of the library without any changes. See the StackOverFlow issue for details. |
|
@pavankjadda I see the SSR merge has been reverted again, why was this and any idea when it'll be returning? |

Uh oh!
There was an error while loading. Please reload this page.
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
All reactions