Skip to content

Commit

Permalink
fix(amplify-category-storage): add auth by default (#8498)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhockett committed Oct 20, 2021
1 parent 7a18644 commit 011cb87
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -35,8 +35,9 @@ import { addTrigger, removeTrigger } from '../s3-trigger-helpers';
export const addWalkthrough = async (context: $TSContext, defaultValuesFilename: string, serviceMetadata: $TSAny, options: $TSAny) => {
while (!checkIfAuthExists()) {
if (
await prompter.confirmContinue(
await prompter.yesOrNo(
'You need to add auth (Amazon Cognito) to your project in order to add storage for user files. Do you want to add auth now?',
true,
)
) {
await context.amplify.invokePluginMethod(context, authCategoryName, undefined, 'add', [context]);
Expand Down

0 comments on commit 011cb87

Please sign in to comment.