Skip to content

Commit

Permalink
chore: update comments, remove unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Jul 30, 2024
1 parent 9aa73db commit ab81067
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions infra-gen2/backends/auth/email-sign-in/amplify/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const { userPool, cfnResources } = resources;
const { stack } = userPool;
const { cfnUserPool } = cfnResources;

// Adds infra for creating/deleting users via App Sync and fetching confirmation
// and MFA codes from App Sync.
const customOutputs = addAuthUserExtensions({
name: "email-sign-in",
stack,
Expand Down
2 changes: 2 additions & 0 deletions infra-gen2/backends/auth/phone-sign-in/amplify/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const { userPool, cfnResources } = resources;
const { stack } = userPool;
const { cfnUserPool } = cfnResources;

// Adds infra for creating/deleting users via App Sync and fetching confirmation
// and MFA codes from App Sync.
const customOutputs = addAuthUserExtensions({
name: "phone-sign-in",
stack,
Expand Down
6 changes: 0 additions & 6 deletions infra-gen2/infra-common/src/types.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class EnvironmentInfo {
/// Whether or not to use the Amplify Outputs config version.
bool get useAmplifyOutputs => configVersion == AmplifyConfigVersion.outputs;

/// Returns the [LoginMethod] for the user.
/// Returns the [UserAttribute] for the user.
UserAttribute getLoginAttribute(String username) => switch (loginMethod) {
LoginMethod.email => UserAttribute.email(username),
LoginMethod.phone => UserAttribute.phone(username),
Expand Down

0 comments on commit ab81067

Please sign in to comment.