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

cookie return value #21

Open
NhlakaMbotho opened this issue Jun 21, 2017 · 2 comments
Open

cookie return value #21

NhlakaMbotho opened this issue Jun 21, 2017 · 2 comments

Comments

@NhlakaMbotho
Copy link

Hi, I have a cookie set with an array object. but when I log the value returned its of type string, hence I get this => [ object Object] , [ object Object ] ....
Any idea what I'm doing wrong?

@caiyawen
Copy link

I have the same problem,do you have solve it?

@jovana-pavlovic
Copy link

hey guys, @NhlakaMbotho @caiyawen
you can use JSON.stringify if you are passing object to cookie, and when you get it parse it with JSON.parse.

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

3 participants