Skip to content

[Bug]: compose-auth: clearCredentialStateAsync no provider dependencies found #28

@THEAccess

Description

@THEAccess

General Info

  • I checked for similar bug report
  • I am using the latest version
  • I checked the troubleshooting page for similar problems

Version(s)

3.2.2

Kotlin Target(s) and their respective versions

Android 12 & 13

What happened? (include your code)

In my crashlytics reports I can see that the app is crashing for about 3-4% of users with the following exception clearCredentialStateAsync no provider dependencies found - please ensure the desired provider dependencies are added originating from the compose-auth plugin.

I have tried but I am unable the reproduce this issue on my devices.

Steps To Reproduce (optional)

No response

Relevant log output (optional)

Fatal Exception: Q.b: clearCredentialStateAsync no provider dependencies found - please ensure the desired provider dependencies are added
       at androidx.credentials.CredentialManagerImpl.clearCredentialStateAsync(CredentialManagerImpl.kt:284)
       at androidx.credentials.CredentialManager.clearCredentialState$suspendImpl(CredentialManager.kt:330)
       at androidx.credentials.CredentialManager.clearCredentialState(CredentialManager.kt:1)
       at io.github.jan.supabase.compose.auth.composable.GoogleAuthKt.handleGoogleSignOut(GoogleAuth.kt:162)
       at io.github.jan.supabase.compose.auth.GoogleLoginConfigKt$googleNativeLogin$1.invoke(GoogleLoginConfig.kt:30)
       at io.github.jan.supabase.compose.auth.GoogleLoginConfigKt$googleNativeLogin$1.invoke(GoogleLoginConfig.kt:30)
       at io.github.jan.supabase.compose.auth.ComposeAuthImpl$init$1.invokeSuspend(ComposeAuth.kt:117)
       at io.github.jan.supabase.compose.auth.ComposeAuthImpl$init$1.invoke(ComposeAuth.kt:9)
       at io.github.jan.supabase.compose.auth.ComposeAuthImpl$init$1.invoke(ComposeAuth.kt:5)
       at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2.emit(Emitters.kt:50)
       at kotlinx.coroutines.flow.StateFlowImpl.collect(StateFlow.kt:401)
       at kotlinx.coroutines.flow.StateFlowImpl$collect$1.invokeSuspend(StateFlow.kt:13)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions