ember-cognito is an Ember Addon that integrates the Ember.js authentication library, ember-simple-auth, with AWS Amplify and AWS Cognito User Pools. It provides a custom authenticator and a service to access Amplify authentication methods, streamlining user authentication in Ember applications using AWS's managed identity service. The current stable version is 4.0.2, released in December 2025. This addon has a consistent release cadence, frequently updating to support newer Ember.js and AWS Amplify versions. A key differentiator is its seamless integration with ember-simple-auth, abstracting the complexities of interacting directly with the AWS Cognito SDK via Amplify, and providing helpers for common authentication flows like sign-up, confirmation, and session management. It also requires specific configuration for modern Ember v2 addons and Embroider compatibility.
npm install ember-cognitoVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to authenticate a user with AWS Cognito using the `ember-simple-auth` session service and the `authenticator:cognito` authenticator. It also includes an example of using the injected `cognito` service for user registration.
Add `import emberCognitoRegistry from 'ember-cognito/registry';` and then spread `...emberCognitoRegistry()` (or `...emberCognitoRegistry('name-of-app')` for `ember-resolver`) into your `modules` configuration.Consult the AWS Amplify v6 migration guide and update any direct Amplify interactions in your application code.
Upgrade your Node.js environment to version 16 or newer.
Run `npm install ember-simple-auth` or `yarn add ember-simple-auth` to ensure it's a direct dependency of your application, and check its version against `ember-cognito`'s peer dependency requirements.
Migrate any direct Cognito SDK interactions to use the AWS Amplify library, or rely on the `ember-cognito` service for abstracted methods. The `CognitoStorage` object is no longer used.
When configuring your Cognito User Pool App Client in AWS, ensure the 'Generate client secret' checkbox is unchecked.
In your `ember-cli-build.js` or `app.js`, add `import emberCognitoRegistry from 'ember-cognito/registry';` and spread `...emberCognitoRegistry()` into your `modules` configuration.
Run `npm install ember-simple-auth@latest` or `yarn add ember-simple-auth@latest` to ensure `ember-simple-auth` is installed and meets the `ember-cognito` peer dependency requirements.
Upgrade your Node.js environment to version 16 or newer.
Verify that `ENV.cognito.poolId` and `ENV.cognito.clientId` are correctly set in `config/environment.js`. Check the `authenticationFlowType` against allowed values (`USER_SRP_AUTH | USER_PASSWORD_AUTH`).