Library Documentation
NPM
GitHub
Preparing search index...
The search index is not available
Amplify JS API Documentation
Amplify JS API Documentation
aws-amplify
auth/cognito
DefaultTokenStore
Class DefaultTokenStore
Implements
AuthTokenStore
Index
Constructors
constructor
Properties
key
Value
Storage?
Methods
clear
Device
Metadata
clear
Tokens
get
Device
Metadata
get
Key
Value
Storage
get
Last
Auth
User
getOAuth
Metadata
load
Tokens
set
Auth
Config
set
Key
Value
Storage
setOAuth
Metadata
store
Tokens
Constructors
constructor
new
Default
Token
Store
(
)
:
DefaultTokenStore
Returns
DefaultTokenStore
Properties
Optional
key
Value
Storage
key
Value
Storage
?:
KeyValueStorageInterface
Methods
clear
Device
Metadata
clear
Device
Metadata
(
username
?
)
:
Promise
<
void
>
Parameters
Optional
username
:
string
Returns
Promise
<
void
>
clear
Tokens
clear
Tokens
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Device
Metadata
get
Device
Metadata
(
username
?
)
:
Promise
<
null
|
DeviceMetadata
>
Parameters
Optional
username
:
string
Returns
Promise
<
null
|
DeviceMetadata
>
get
Key
Value
Storage
get
Key
Value
Storage
(
)
:
KeyValueStorageInterface
Returns
KeyValueStorageInterface
get
Last
Auth
User
get
Last
Auth
User
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
getOAuth
Metadata
getOAuth
Metadata
(
)
:
Promise
<
null
|
OAuthMetadata
>
Returns
Promise
<
null
|
OAuthMetadata
>
load
Tokens
load
Tokens
(
)
:
Promise
<
null
|
CognitoAuthTokens
>
Returns
Promise
<
null
|
CognitoAuthTokens
>
set
Auth
Config
set
Auth
Config
(
authConfig
)
:
void
Parameters
authConfig
:
AuthConfig
Returns
void
set
Key
Value
Storage
set
Key
Value
Storage
(
keyValueStorage
)
:
void
Parameters
keyValueStorage
:
KeyValueStorageInterface
Returns
void
setOAuth
Metadata
setOAuth
Metadata
(
metadata
)
:
Promise
<
void
>
Parameters
metadata
:
OAuthMetadata
Returns
Promise
<
void
>
store
Tokens
store
Tokens
(
tokens
)
:
Promise
<
void
>
Parameters
tokens
:
CognitoAuthTokens
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
key
Value
Storage
clear
Device
Metadata
clear
Tokens
get
Device
Metadata
get
Key
Value
Storage
get
Last
Auth
User
getOAuth
Metadata
load
Tokens
set
Auth
Config
set
Key
Value
Storage
setOAuth
Metadata
store
Tokens
Amplify JS API Documentation
aws-amplify
@aws-amplify
geo
interactions
predictions
pubsub
adapter-nextjs
datastore-storage-adapter