Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisabhash committed Nov 17, 2023
1 parent 11375c3 commit fb49c66
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//

import Foundation

/// Delivery destination for the Auth Passwordless flows
///
public enum AuthPasswordlessDeliveryDestination {
case phone
case email
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,11 @@ import Foundation
/// Auth Passwordless flow types
///
/// `.signUpAndSignIn` will create a new user and initiate signing in the user
/// `signIn` will initiate signing in an existing user
/// `.signIn` will initiate signing in an existing user
public enum AuthPasswordlessFlow {
case signUpAndSignIn(
userAttributes: [String: String]?,
clientMetadata: [String: String]?
)
case signIn(clientMetadata: [String: String]?)
}

/// Delivery destination for the Auth Passwordless flows
///
/// For One Time Password, it can be either .`phone` or `.email`
/// For Magic Link, it is `.email`
public enum AuthPasswordlessDeliveryDestination {
case phone
case email
}

0 comments on commit fb49c66

Please sign in to comment.