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

Allow fromRes for getCookie #531

Closed
1 task
huang-julien opened this issue Sep 8, 2023 · 1 comment
Closed
1 task

Allow fromRes for getCookie #531

huang-julien opened this issue Sep 8, 2023 · 1 comment

Comments

@huang-julien
Copy link

Describe the feature

Hi 👋

When working with SSR, we can sometime have a setCookie called somewhere with a value needed for like an axios instance. When using getCookie, we can only retrieve the value from a request but not from the response.
I'm currently using cookie-universal but it would be nice if we could have fromRes or preferRes as an optionnal parameter to retrieve a cookie value from set-cookie of the response.

Additional information

  • Would you be willing to help implement this feature?
@huang-julien
Copy link
Author

duplicate of #509

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