AWSCredentialsErrorMessages: {
    API_ERROR: "API error";
    CREDENTIALS_RETRY: (attempt: number, max: number) => string;
    FETCH_CALLED: "fetchTemporaryAWSCredentials called";
    FETCH_SUCCESS: "Temporary AWS credentials fetched and saved";
    HTTP_ERROR: (status: number) => string;
    ID_TOKEN_REFRESH: "ID token expired or invalid; refreshing session before credentials";
    INCOMPLETE_CREDENTIALS: "Incomplete AWS credentials received";
    INCOMPLETE_CREDENTIALS_LOG: "Incomplete credentials received";
    MISSING_ACCESS_TOKEN: "Missing access token - user must be logged in";
    MISSING_ID_TOKEN: "Missing ID token - user must be logged in";
    NETWORK_ERROR: (detail: string) => string;
    READ_RESPONSE_FAILED: (detail: string) => string;
} = ...

Error / log messages for temporary AWS credentials (POST /v1/user/credentials).

Type declaration

  • ReadonlyAPI_ERROR: "API error"

    Logged when the credentials API returns a non-retryable error.

  • ReadonlyCREDENTIALS_RETRY: (attempt: number, max: number) => string

    Logged when retrying after a 401 expired-token response.

  • ReadonlyFETCH_CALLED: "fetchTemporaryAWSCredentials called"

    Logged when fetchTemporaryAWSCredentials starts.

  • ReadonlyFETCH_SUCCESS: "Temporary AWS credentials fetched and saved"

    Logged when temporary credentials are fetched and persisted successfully.

  • ReadonlyHTTP_ERROR: (status: number) => string

    Fallback when the credentials API returns a non-OK status with an empty body.

  • ReadonlyID_TOKEN_REFRESH: "ID token expired or invalid; refreshing session before credentials"

    Logged when the ID token is expired/invalid and a session refresh is started.

  • ReadonlyINCOMPLETE_CREDENTIALS: "Incomplete AWS credentials received"

    Thrown when the credentials API response is missing required fields.

  • ReadonlyINCOMPLETE_CREDENTIALS_LOG: "Incomplete credentials received"

    Logged when incomplete credentials are received from the API.

  • ReadonlyMISSING_ACCESS_TOKEN: "Missing access token - user must be logged in"

    Thrown / logged when the Cognito access token is missing from storage.

  • ReadonlyMISSING_ID_TOKEN: "Missing ID token - user must be logged in"

    Thrown / logged when the Cognito ID token is missing from storage.

  • ReadonlyNETWORK_ERROR: (detail: string) => string

    Thrown when the credentials HTTP call fails at the network layer.

  • ReadonlyREAD_RESPONSE_FAILED: (detail: string) => string

    Thrown when the credentials response body cannot be read.