API Reference

@aws-sdk/client-cognito-identity

AWS SDK client for Amazon Cognito Identity pools, providing GetId and GetCredentialsForIdentity commands.

Official Documentation ↗
CompatibilityThis documentation covers version v3.658. Check the official docs for the latest API surface.

Installation

npmnpm install @aws-sdk/client-cognito-identity

Methods

@aws-sdk/client-cognito-identity is aws sdk client for amazon cognito identity pools, providing getid and getcredentialsforidentity commands. This page documents the core methods, installation, and common usage patterns for the current stable release.

Installation

Install @aws-sdk/client-cognito-identity with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.

Core methods

The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v3.658 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.

Frequently asked questions

The faq section in the frontmatter answers the most common questions about @aws-sdk/client-cognito-identity, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.

FAQ

How is it different from the v2 SDK?
v3 is modular; you import only the client and commands you need, reducing bundle size.
Does it support browser usage?
Yes. It works in browsers with credentials from Cognito or an identity provider.
How do I handle retries?
Configure maxAttempts on the client; the SDK retries with exponential backoff by default.