diff --git a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ClientBehavior/AWSCognitoAuthPlugin+ClientBehavior.swift b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ClientBehavior/AWSCognitoAuthPlugin+ClientBehavior.swift index 0dc729a532..d17015d744 100644 --- a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ClientBehavior/AWSCognitoAuthPlugin+ClientBehavior.swift +++ b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ClientBehavior/AWSCognitoAuthPlugin+ClientBehavior.swift @@ -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") + } } diff --git a/AmplifyTestCommon/Mocks/MockAuthCategoryPlugin.swift b/AmplifyTestCommon/Mocks/MockAuthCategoryPlugin.swift index 2a7bd7f1fd..bc31414179 100644 --- a/AmplifyTestCommon/Mocks/MockAuthCategoryPlugin.swift +++ b/AmplifyTestCommon/Mocks/MockAuthCategoryPlugin.swift @@ -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,