Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(datastore): prevent auth plugin from throwing during configuration #5132

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.content.Context
import android.content.Intent
import aws.smithy.kotlin.runtime.time.Instant
import com.amazonaws.amplify.amplify_datastore.pigeons.NativeAuthPlugin
import com.amplifyframework.annotations.InternalAmplifyApi
import com.amplifyframework.auth.AWSCredentials
import com.amplifyframework.auth.AuthCodeDeliveryDetails
import com.amplifyframework.auth.AuthDevice
Expand Down Expand Up @@ -43,6 +44,7 @@ import com.amplifyframework.auth.result.AuthSignUpResult
import com.amplifyframework.auth.result.AuthUpdateAttributeResult
import com.amplifyframework.core.Action
import com.amplifyframework.core.Consumer
import com.amplifyframework.core.configuration.AmplifyOutputsData
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import org.json.JSONObject
Expand All @@ -66,6 +68,11 @@ class NativeAuthPluginWrapper(
// No-op
}

@InternalAmplifyApi
override fun configure(configuration: AmplifyOutputsData, context: Context) {
// No-op
}

override fun fetchAuthSession(
onSuccess: Consumer<AuthSession>,
onError: Consumer<AuthException>
Expand Down
Loading