The `leo-auth` SDK provides authentication utilities primarily for the LeoPlatform ecosystem, facilitating secure interactions with platform services. Currently stable at version 4.0.5, with ongoing development and recent pre-releases like `4.0.7-awsv3` indicating a continuous, albeit not rapid, release cadence. Key differentiators include its tight integration with AWS services, notably upgrading to AWS SDK v3 in the 4.x series, which offers modernized client configurations and improved performance. The SDK also incorporates security enhancements such as moving off TLSv1, and features like context overrides and `cognitoIdentityId` proxy for AWS key callers, indicating a focus on robust, cloud-native authentication flows. It is built to support Node.js environments and interacts with common authentication patterns for cloud applications.
npm install leo-authVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `leo-auth` SDK and obtain guest credentials using environment variables for configuration. It outlines a basic setup suitable for Node.js applications interacting with the LeoPlatform's authentication mechanisms.
Consult the AWS SDK for JavaScript v3 migration guide for updating AWS client initializations and API calls. Review `leo-auth` documentation for any new configuration requirements related to AWS SDK v3.
Refactor your application to use single-valued query string parameters or custom logic to parse multi-valued parameters before they are processed by the `leo-auth` SDK. Check if a future patch re-introduces this feature with a fix.
Upgrade your Node.js runtime to a version that supports TLSv1.2 or higher (Node.js 12.x and above generally support this by default). Verify network proxies or firewalls are not enforcing older TLS versions.
Update your import statements to use ES Module syntax: `import { Auth } from 'leo-auth';`. Ensure your `package.json` has `"type": "module"` or files use `.mjs` extension for ESM, or use a transpiler like Babel/TypeScript.Verify all AWS SDK related imports and client instantiations are updated to the v3 modular syntax (e.g., `import { CognitoIdentityClient } from '@aws-sdk/client-cognito-identity';`). Ensure `leo-auth` is the correct version for your AWS SDK setup and re-check its configuration.No dependency data recorded yet.