New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
f is undefined in fromCognitoIdentityPool #564
Comments
Also, can you provide which the full package versions? |
@srchase the version I'm using is this one : While you are responding this, could you also guide me as to how to create the |
@pash90 import {CognitoIdentityClient} from "@aws-sdk/client-cognito-identity";
import { fromCognitoIdentityPool } from "@aws-sdk/credential-provider-cognito-identity"
const provideCredentials = fromCognitoIdentityPool({
client: new CognitoIdentityClient({})//Or specify the region and other config you need
identityPoolId: this.cognitoIdentityPoolId
}) |
awesome @AllanFly120 I will try it out asap |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
While using the
fromCognitoIdentityPool
function from@aws-sdk/credential-provider-cognito-identity
, there is a runtime error that says:I understand that this is a library in development but using the v2
aws-sdk
is a no-go since the only thing I need is creating credentials for an anonymous user.SDK version number
v3
Is the issue in the browser/Node.js?
Browser/Node.js
Details of the browser/Node.js version
v12.13.1
To Reproduce (observed behavior)
Expected behavior
Ideally, the credentials should be returned at the end.
Screenshots
The text was updated successfully, but these errors were encountered: