-
Notifications
You must be signed in to change notification settings - Fork 135
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
Invalid self signup #145
Invalid self signup #145
Conversation
packages/cdk/lib/construct/auth.ts
Outdated
super(scope, id); | ||
|
||
const selfSignUpEnabled: boolean = props.selfSignUpEnabled || false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この行は不要ですね
packages/cdk/lib/construct/auth.ts
Outdated
const userPool = new UserPool(this, 'UserPool', { | ||
selfSignUpEnabled: true, | ||
selfSignUpEnabled: selfSignUpEnabled, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここは selfSignUpEnabled: props.selfSignUpEnabled
で良いです。
@@ -9,8 +9,12 @@ export class GenerativeAiUseCasesStack extends Stack { | |||
process.env.overrideWarningsEnabled = 'false'; | |||
|
|||
const ragEnabled: boolean = this.node.tryGetContext('ragEnabled') || false; | |||
const selfSignUpEnabled: boolean = | |||
this.node.tryGetContext('selfSignUpEnabled') || false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdk context のデフォルト値に合わせたいので true でお願いします!
#143