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

Manually decrypt cookie? #96

Closed
mattfordham opened this issue Apr 9, 2015 · 2 comments
Closed

Manually decrypt cookie? #96

mattfordham opened this issue Apr 9, 2015 · 2 comments

Comments

@mattfordham
Copy link

I am attempting to incorporate integration tests into an application using this module. As the testing system (CasperJS) has no awareness of the back-end, I can't easily decrypt the cookies for testing.

I can access the cookies and know the secret used on the server-side. With those two items in hand, how can I decrypt the cookies (in order to ensure their contents are as expected and use them as input for further tests)?

Thanks!

@seanmonstar
Copy link
Contributor

There's a util property on the exported module that includes encode and decode methods.

@mattfordham
Copy link
Author

Oh cool. I'll give that a go!

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

2 participants