Skip to content

Commit

Permalink
fix(aws-amplify): createKeyValueStorageFromCookieStorageAdapter misse…
Browse files Browse the repository at this point in the history
…s default path and secure values
  • Loading branch information
HuiSF committed Jun 18, 2024
1 parent de6b06d commit af078e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
export const defaultSetCookieOptions: CookieStorage.SetCookieOptions = {
// TODO: allow configure with a public interface
sameSite: 'lax',
secure: true,
path: '/',
};
const ONE_YEAR_IN_MS = 365 * 24 * 60 * 60 * 1000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ export declare namespace CookieStorage {
export type SetCookieOptions = Partial<
Pick<
CookieSerializeOptions,
'domain' | 'expires' | 'httpOnly' | 'maxAge' | 'sameSite' | 'secure'
| 'domain'
| 'expires'
| 'httpOnly'
| 'maxAge'
| 'sameSite'
| 'secure'
| 'path'
>
>;

Expand Down

0 comments on commit af078e7

Please sign in to comment.