Library Documentation
NPM
GitHub
Preparing search index...
The search index is not available
Amplify JS API Documentation
Amplify JS API Documentation
aws-amplify
utils
CookieStorage
Class CookieStorage
Implements
KeyValueStorageInterface
Index
Constructors
constructor
Properties
domain?
expires?
path
same
Site?
secure?
Methods
clear
get
Item
remove
Item
set
Item
Constructors
constructor
new
Cookie
Storage
(
data
?
)
:
CookieStorage
Parameters
Optional
data
:
CookieStorageData
Returns
CookieStorage
Properties
Optional
domain
domain
?:
string
Optional
expires
expires
?:
number
path
path
:
string
Optional
same
Site
same
Site
?:
SameSite
Optional
secure
secure
?:
boolean
Methods
clear
clear
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Item
get
Item
(
key
)
:
Promise
<
null
|
string
>
Parameters
key
:
string
Returns
Promise
<
null
|
string
>
remove
Item
remove
Item
(
key
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
set
Item
set
Item
(
key
,
value
)
:
Promise
<
void
>
Parameters
key
:
string
value
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
domain
expires
path
same
Site
secure
clear
get
Item
remove
Item
set
Item
Amplify JS API Documentation
aws-amplify
@aws-amplify
geo
interactions
predictions
pubsub
adapter-nextjs
datastore-storage-adapter