Skip to content

Is there a schema documentation for config? (coming from aws-exports.js) #13995

@drewboardman

Description

@drewboardman

Amplify CLI Version

"aws-amplify": "^6.0.28"

Question

I am using the stand-alone authentication library. I am not interested in using the CLI or Amplify backend stuff for my app. I just want to use the Authenticator and have federated social sign-in through Google and Cognito.

One issue is that I cannot find any documentation of how to manually configure the config passed to Amplify.configure(config);. I figured out the Cognito bits:

export const cognitoConfig = {
    // socialProviders: ["Facebook", "Google"],
    Auth: {
        Cognito: {
            userPoolId: "us-east-aaa",
            userPoolClientId: "bbb",
            // Login options (optional)
            loginWith: {
                username: true,
                email: false,
                phone: false,
            },
            mfaConfiguration: "OFF",
            passwordProtectionSettings: {
                minLength: 8,
            },
            verificationMechanisms: ["EMAIL"],
        }
    }
};

This seems to be the Gen 1 solution. Since in the code, it is named LegacyConfig and there is a comment:

 * Compatibility type representing the Amplify Gen 1 configuration file schema. This type should not be used directly.

However, I can't find any documentation for setting up the social sign in for this UI library. All example/videos/documentation that are on the official website seem to rely on the amplify-cli. This is confusing to me, since the UI libraries seem to be marketed as stand-alone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-responseIssue is pending response from the issue authorpending-triageIssue is pending triagequestionGeneral question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions