Amplify JS API Documentation
Library Documentation
NPM
GitHub
Preparing search index...
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
CookieStorage
(
data
?:
CookieStorageData
)
:
CookieStorage
Parameters
Optional
data
:
CookieStorageData
Returns
CookieStorage
Properties
Optional
domain
domain
?:
string
Optional
expires
expires
?:
number
path
path
:
string
Optional
same
Site
sameSite
?:
SameSite
Optional
secure
secure
?:
boolean
Methods
clear
clear
()
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Item
getItem
(
key
:
string
)
:
Promise
<
string
|
null
>
Parameters
key
:
string
Returns
Promise
<
string
|
null
>
remove
Item
removeItem
(
key
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
set
Item
setItem
(
key
:
string
,
value
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
value
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
domain
expires
path
same
Site
secure
Methods
clear
get
Item
remove
Item
set
Item
Library Documentation
NPM
GitHub
Amplify JS API Documentation
Loading...