mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user