
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
aws-cognito-public-keys
Advanced tools
Gets public keys for a given AWS Cognito user pool id
aws-cognito-public-keys
Module for retrieving public keys for AWS Cognito user pools
Install via npm.
npm install aws-cognito-public-keys --save
const { getKeysSync } = require( 'aws-cognito-public-keys' );
const userPoolId = 'us-east-1_ZLPZ8Z7yS'; // your user pool id
const awsRegion = 'us-east1'; // valid AWS Region
const key = getKeysSync( userPoolId, awsRegion );
// keys =
// {
// "<key id 1>": { ...key1 ... }
// "<key id 2>": { ...key2 ... }
// ..
// }
async getKeys( userPoolId, region )
Gets the Cognito public keys asynchronously. Returns a promise that resolves to an object that contains the keys.
getKeysSync( userPoolId, region )
Gets the Cognito public keys synchronously and blocks until resolved. Returns an object that contains the keys.
We'd love to get feedback on how to make this tool better. Feel free to contact
us at feedback@vandium.io
FAQs
Gets public keys for a given AWS Cognito user pool id
We found that aws-cognito-public-keys demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.