We are excited to announce our new API Documentation.
Protected
Refreshes a previously issued access token that might have expired.
Use a bare-bones client and the command you need to make an API call.
import { AmplifyUIBuilderClient, RefreshTokenCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import// const { AmplifyUIBuilderClient, RefreshTokenCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS importconst client = new AmplifyUIBuilderClient(config);const input = { // RefreshTokenRequest provider: "STRING_VALUE", // required refreshTokenBody: { // RefreshTokenRequestBody token: "STRING_VALUE", // required clientId: "STRING_VALUE", },};const command = new RefreshTokenCommand(input);const response = await client.send(command);// { // RefreshTokenResponse// accessToken: "STRING_VALUE", // required// expiresIn: Number("int"), // required// };
RefreshTokenCommandInput
RefreshTokenCommandOutput
input
response
config
InvalidParameterException (client fault)
An invalid or out-of-range value was supplied for the input parameter.
AmplifyUIBuilderServiceException
Base exception class for all service exceptions from AmplifyUIBuilder service.
Readonly
Static
Refreshes a previously issued access token that might have expired.
Example
Use a bare-bones client and the command you need to make an API call.
Param
RefreshTokenCommandInput
Returns
RefreshTokenCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidParameterException (client fault)
An invalid or out-of-range value was supplied for the input parameter.
Throws
AmplifyUIBuilderServiceException
Base exception class for all service exceptions from AmplifyUIBuilder service.