Skip to content

Instantly share code, notes, and snippets.

@mdlavin
Created January 23, 2021 19:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdlavin/053cca44fdd0733f112dcb9ae2d7aa14 to your computer and use it in GitHub Desktop.
Save mdlavin/053cca44fdd0733f112dcb9ae2d7aa14 to your computer and use it in GitHub Desktop.
Amplify Custom Auth Domain Config Update
import awsconfig from "./aws-exports";
import Amplify from "@aws-amplify/core";
// Find the User Pool ID for your production deployment in
// the AWS Console
if (awsconfig.aws_user_pools_id === "us-east-1_M7n6RNrq9") {
awsconfig.oauth.domain = "auth.yourdomain.com;
}
Amplify.configure(awsconfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment