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
CognitoUserPoolTokenProviderType
Interface CognitoUserPoolTokenProviderType
interface
CognitoUserPoolTokenProviderType
{
getTokens
(
__namedParameters
?
)
:
Promise
<
null
|
AuthTokens
>
;
setAuthConfig
(
authConfig
)
:
void
;
setKeyValueStorage
(
keyValueStorage
)
:
void
;
}
Hierarchy (
view full
)
TokenProvider
CognitoUserPoolTokenProviderType
Implemented by
CognitoUserPoolsTokenProvider
Index
Methods
get
Tokens
set
Auth
Config
set
Key
Value
Storage
Methods
get
Tokens
get
Tokens
(
__namedParameters
?
)
:
Promise
<
null
|
AuthTokens
>
Parameters
Optional
__namedParameters
:
{
forceRefresh
?:
boolean
;
}
Optional
force
Refresh
?:
boolean
Returns
Promise
<
null
|
AuthTokens
>
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
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
get
Tokens
set
Auth
Config
set
Key
Value
Storage
Amplify JS API Documentation
aws-amplify
@aws-amplify
geo
interactions
predictions
pubsub
adapter-nextjs
datastore-storage-adapter