-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Can you specify cookies for cookie storage? #1735
Comments
@jrp-23 sorry but for now there is no way to do that. Will mark as feature request. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We are having issues with our websites as the header size is too large with all of the cookies that are set. We also only need the access token. This feature would be nice. As of right now we're looking at having Amplify use local storage and additionally setting an access token cookie, but that's messy. |
You can use a custom storage & filter out cookie keys you don't want to use. https://aws-amplify.github.io/docs/js/authentication#managing-security-tokens Related: #1545 |
Closing as https://docs.amplify.aws/lib/auth/manageusers/q/platform/js#managing-security-tokens is the best way to customize credential storage. It's worth noting that |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
I’m considering using cookie storage for the purpose of sending a JWT to the server on every HTTP request.
I configured my app to use cookie storage but doing so will include all 3 JWTs (id, access, and refresh) as separate cookies. All 3 cookies will be sent for each request, but I only need 1 (access token). I don’t want the other 2 cookies sent as it is unnecessary additional payload which has the potential to decrease performance.
My question is: can I specify that just the access token is stored in a cookie?
The text was updated successfully, but these errors were encountered: