New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cognito-local

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cognito-local - npm Package Versions

23
6

5.0.0

Diff

jagregory
published 4.1.0 •

jagregory
published 4.0.0 •

Changelog

Source

4.0.0 (2025-02-11)

  • fix!: user pool creation race conditions (69ee1e1)

BREAKING CHANGES

  • You must create a User Pool before using it (by calling createUserPool). Previously, User Pools would be created on-demand.

User Pools (and their associated databases) used to be created lazily when first accessed, this was intended to to allow low-touch setup of cognito-local by creating user pools with default options if they don't exist, but it has been a source of obscure corruption issues for a while. It's been possible to create race conditions by making requests to cognito-local in parallel before a User Pool was created, and those parallel requests would stomp on each other by creating multiple databases.

This change removes the laziness: Any existing User Pools will be parsed when cognito-local first starts, and new User Pools are created when createUserPool is called. Any attempts to access User Pools which don't exist will fail with a ResourceNotFound error.

jagregory
published 3.23.3 •

Changelog

Source

3.23.3 (2024-03-21)

Bug Fixes

  • add openid-configuration endpoint (14a6507)
jagregory
published 3.23.2 •

Changelog

Source

3.23.2 (2023-05-28)

Bug Fixes

  • InitiateAuth: handle UNCONFIRMED user login attempt (93a452b)
jagregory
published 3.23.1 •

Changelog

Source

3.23.1 (2023-03-11)

Bug Fixes

  • api: confirm user apis return errors for invalid states (e2975f0)
jagregory
published 3.23.0 •

Changelog

Source

3.23.0 (2023-03-11)

Bug Fixes

  • lambda: unhandled errors in lambda return correct error message (c9821d1)

Features

  • api: listUsers support for Filter (5ebcf24), closes #313
jagregory
published 3.22.0 •

Changelog

Source

3.22.0 (2023-03-10)

Features

  • confirmationCodes: add CODE environment variable to pre-define the confirmation codes (2c823f0)
  • confirmationCodes: update README file (9143469)
jagregory
published 3.21.2 •

Changelog

Source

3.21.2 (2023-03-10)

Bug Fixes

  • errorFormat: make exception format more consistent with real Cognito exceptions (e67576b)
  • tests: newer node versions were starting express in ipv6 (efc08a7)
jagregory
published 3.21.1 •

Changelog

Source

3.21.1 (2022-08-01)

Bug Fixes

  • initiateAuth: invoke post auth lambda before generating tokens (8330a9f), closes #281
  • initiateAuth: invoke post auth lambda before generating tokens [281] (8c06e2a)
  • initiateAuth: invoke post auth lambda before generating tokens [281] (1b16f04)
23
6
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc