fix(android): handle_sign_in_callback is the host part of the URI (#3149)

Gets the new auth flow working for Android
This commit is contained in:
Jamil
2024-01-09 20:41:04 -08:00
committed by GitHub
parent 9844a4b7b7
commit 653b32456a

View File

@@ -26,10 +26,10 @@ internal class CustomUriViewModel
val actionLiveData: LiveData<ViewAction> = actionMutableLiveData
fun parseCustomUri(intent: Intent) {
Log.d("CustomUriViewModel", "Parsing app link...")
Log.d("CustomUriViewModel", "Parsing callback...")
viewModelScope.launch {
Log.d("CustomUriViewModel", "viewmodelScope.launch")
when (intent.data?.lastPathSegment) {
when (intent.data?.host) {
PATH_CALLBACK -> {
Log.d("CustomUriViewModel", "PATH_CALLBACK")
intent.data?.getQueryParameter(QUERY_CLIENT_STATE)?.let { state ->