okta / samples-android

samples-android
https://github.com/okta/samples-android
Apache License 2.0
37 stars 52 forks source link

Add biometrics support to browser_sign_in sample #94

Closed rajdeepnanua-okta closed 1 year ago

rajdeepnanua-okta commented 1 year ago

@rajeshjadidminc, I believe I have addressed that issue with the latest commit to this PR. Let me know if you're still running into this issue after that, and let's discuss the issue further in https://github.com/okta/samples-android/issues/99

rajeshjadidminc commented 1 year ago

Hi,

I have applied same changes as per the master branch but getting below crash on application launch:

FATAL EXCEPTION: main Process: com.cfna.app.debug, PID: 22511 java.lang.IllegalStateException: Attempted accessing credential storage before calling setSharedPreferences at com.cfna.app.okta.storage.CredentialTokenStorage$accessStorage$2.invokeSuspend(CredentialTokenStorage.kt:89) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@adf88c6, Dispatchers.Main.immediate]