ConstReadonlyAPI_ERROR: "API error"Logged when the credentials API returns a non-retryable error.
ReadonlyCREDENTIALS_RETRY: (attempt: number, max: number) => stringLogged 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) => stringFallback 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) => stringThrown when the credentials HTTP call fails at the network layer.
ReadonlyREAD_RESPONSE_FAILED: (detail: string) => stringThrown when the credentials response body cannot be read.
Error / log messages for temporary AWS credentials (POST /v1/user/credentials).