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 c63ea96 commit 11375c3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,20 @@ extension AWSCognitoAuthPlugin: AuthCategoryBehavior {
return try await task.value
}
}

public func signInWithMagicLink(
username: String,
flow: AuthPasswordlessFlow,
redirectURL: String,
options: AuthSignInRequest.Options?
) async throws -> AuthSignInResult {
throw AuthError.unknown("Not Implemented")
}

public func confirmSignInWithMagicLink(
challengeResponse: String,
options: AuthConfirmSignInRequest.Options?
) async throws -> AuthSignInResult {
throw AuthError.unknown("Not Implemented")
}
}
8 changes: 8 additions & 0 deletions AmplifyTestCommon/Mocks/MockAuthCategoryPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ class MockAuthCategoryPlugin: MessageReporter, AuthCategoryPlugin {
) async throws {
fatalError()
}

func signInWithMagicLink(username: String, flow: AuthPasswordlessFlow, redirectURL: String, options: AuthSignInRequest.Options?) async throws -> AuthSignInResult {
fatalError()
}

func confirmSignInWithMagicLink(challengeResponse: String, options: AuthConfirmSignInRequest.Options?) async throws -> AuthSignInResult {
fatalError()
}

public func confirm(userAttribute: AuthUserAttributeKey,
confirmationCode: String,
Expand Down

0 comments on commit 11375c3

Please sign in to comment.