Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server-side Rendering & Access to user's ID #81

Open
joncursi opened this issue Dec 21, 2017 · 0 comments
Open

Server-side Rendering & Access to user's ID #81

joncursi opened this issue Dec 21, 2017 · 0 comments

Comments

@joncursi
Copy link

Is it possible to communicate the ID of the user making the request to the Meteor server? I am using the server-render package to perform SSR on my app, and to make sure the proper tree is rendered on the server, I need access to the user's ID.

Right now it looks like the user's id information is stored in localStorage in the browser instead of a cookie. The new version of the server-render package supports the ability to grab access to the user's cookies via the getCookie() method:

https://github.com/meteor/meteor/tree/devel/packages/server-render#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant