From b98e3bfa95f0caaf43d5e4f184b8a560c8b0d930 Mon Sep 17 00:00:00 2001 From: Eric Clemmons Date: Tue, 11 Aug 2020 11:22:18 -0700 Subject: [PATCH] Update example with CookieStorage's sameSite https://github.com/aws-amplify/amplify-js/issues/4958 https://github.com/aws-amplify/amplify-js/pull/5726 https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite --- docs/lib/auth/fragments/js/start.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/lib/auth/fragments/js/start.md b/docs/lib/auth/fragments/js/start.md index 1ffe8ce56c2..1c1a936118f 100644 --- a/docs/lib/auth/fragments/js/start.md +++ b/docs/lib/auth/fragments/js/start.md @@ -93,6 +93,8 @@ Amplify.configure({ path: '/', // OPTIONAL - Cookie expiration in days expires: 365, + // OPTIONAL - See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite + sameSite: "strict" | "lax", // OPTIONAL - Cookie secure flag // Either true or false, indicating if the cookie transmission requires a secure protocol (https). secure: true