Created
January 23, 2021 19:45
-
-
Save mdlavin/053cca44fdd0733f112dcb9ae2d7aa14 to your computer and use it in GitHub Desktop.
Amplify Custom Auth Domain Config Update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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